forked from qt-creator/qt-creator
Clang: add more data to TokenInfo class
Add token name, usr, isDefinition and isDeclaration. Change-Id: If67bf78c999cb9edd397d0b553b33e5f5f378f8a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
@@ -66,8 +66,12 @@ QDebug operator<<(QDebug debug, const TokenInfoContainer &container)
|
||||
<< container.column() << ", "
|
||||
<< container.length() << ", "
|
||||
<< highlightingTypeToCStringLiteral(container.types().mainHighlightingType) << ", "
|
||||
<< container.token() << ", "
|
||||
<< container.typeSpelling() << ", "
|
||||
<< container.isIdentifier() << ", "
|
||||
<< container.isIncludeDirectivePath()
|
||||
<< container.isIncludeDirectivePath() << ", "
|
||||
<< container.isDeclaration() << ", "
|
||||
<< container.isDefinition()
|
||||
<< ")";
|
||||
|
||||
return debug;
|
||||
@@ -98,8 +102,12 @@ std::ostream &operator<<(std::ostream &os, const TokenInfoContainer &container)
|
||||
<< container.column() << ", "
|
||||
<< container.length() << ", "
|
||||
<< container.types() << ", "
|
||||
<< container.token() << ", "
|
||||
<< container.typeSpelling() << ", "
|
||||
<< container.isIdentifier() << ", "
|
||||
<< container.isIncludeDirectivePath()
|
||||
<< container.isIncludeDirectivePath() << ", "
|
||||
<< container.isDeclaration() << ", "
|
||||
<< container.isDefinition()
|
||||
<< ")";
|
||||
|
||||
return os;
|
||||
|
||||
Reference in New Issue
Block a user