forked from qt-creator/qt-creator
C++: fix constantValue for EnumeratorDeclaration
For the case:
const int x = 12;
enum E { e = x };
constantValue for EnumeratorDeclaration has value=' x'. It should have 'x'.
Change-Id: Iaca77cccd1e0dc5274696b0c96cec6ac2f904979
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
46461fc183
commit
37430df636
3
src/libs/3rdparty/cplusplus/Bind.h
vendored
3
src/libs/3rdparty/cplusplus/Bind.h
vendored
@@ -105,7 +105,8 @@ protected:
|
||||
void capture(CaptureAST *ast);
|
||||
void lambdaDeclarator(LambdaDeclaratorAST *ast);
|
||||
FullySpecifiedType trailingReturnType(TrailingReturnTypeAST *ast, const FullySpecifiedType &init);
|
||||
const StringLiteral *asStringLiteral(unsigned firstToken, unsigned lastToken);
|
||||
const StringLiteral *asStringLiteral(unsigned firstToken, unsigned lastToken,
|
||||
bool addWhitespace = true);
|
||||
|
||||
virtual bool preVisit(AST *);
|
||||
virtual void postVisit(AST *);
|
||||
|
||||
Reference in New Issue
Block a user