aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/Overview.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2025-08-20 18:15:21 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2025-09-01 15:49:17 +0000
commit96c5862c01b98cbdcbb2bb584773c10e10f5549d (patch)
treebeedb964c8ed2d2e74a4a9f7980096a87799cad3 /src/libs/cplusplus/Overview.cpp
parent5df761d7cf9a30b4afb83d9788d3958d616a5122 (diff)
CPlusPlus: Fix pretty-printing of constrained function parameters
This consists of three parts: 1) Fix parsing of contrained types. In a declaration func(MyConcept auto p); the parameter p was mis-parsed as a type name. 2) Properly handle the resulting AST so that a constrained parameter gets the right type. We re-use NamedType and combine it with the "auto" flag. 3) Teach the TypePrettyPrinter to handle such types. Task-number: QTCREATORBUG-33005 Change-Id: I2c6e3a64a2b9fb3d294a580fbc43ceb80f5d75e1 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/libs/cplusplus/Overview.cpp')
-rw-r--r--src/libs/cplusplus/Overview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/cplusplus/Overview.cpp b/src/libs/cplusplus/Overview.cpp
index 8826b0a79ee..d5d37e0c7f7 100644
--- a/src/libs/cplusplus/Overview.cpp
+++ b/src/libs/cplusplus/Overview.cpp
@@ -65,6 +65,7 @@ Overview::Overview()
showEnclosingTemplate(false),
includeWhiteSpaceInOperatorName(true),
trailingReturnType(false),
+ combineAutoAndName(false),
markedArgument(0),
markedArgumentBegin(0),
markedArgumentEnd(0)