forked from qt-creator/qt-creator
CPlusPlus: Add new usage tag "Template"
For use in follow-up patch. Change-Id: I49c057280be9b09862a89fa385a7396f1b1093bb Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -274,6 +274,10 @@ public:
|
||||
}
|
||||
}
|
||||
}
|
||||
for (auto it2 = it; it2 != m_astPath.rend(); ++it2) {
|
||||
if ((*it2)->asTemplateDeclaration())
|
||||
return tags |= Usage::Tag::Template;
|
||||
}
|
||||
return tags;
|
||||
}
|
||||
if (const auto retStmt = (*it)->asReturnStatement()) {
|
||||
|
||||
@@ -24,6 +24,7 @@ public:
|
||||
WritableRef = 1 << 3,
|
||||
Override = 1 << 4,
|
||||
MocInvokable = 1 << 5,
|
||||
Template = 1 << 6,
|
||||
};
|
||||
using Tags = QFlags<Tag>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user