forked from qt-creator/qt-creator
		
	CppTools: Offer "override" and "final" as completion items
These are special identifiers and were thus not included in the 'add all keywords' handling. Change-Id: I7f65df5711193e945bfa955dcb70a6ab454606b5 Task-number: QTCREATORBUG-11341 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com> Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
		| @@ -1937,6 +1937,12 @@ void InternalCppCompletionAssistProcessor::addKeywords() | ||||
|     // primitive type completion items. | ||||
|     for (int i = T_FIRST_PRIMITIVE; i <= T_LAST_PRIMITIVE; ++i) | ||||
|         addCompletionItem(QLatin1String(Token::name(i)), m_icons.keywordIcon(), KeywordsOrder); | ||||
|  | ||||
|     // "Identifiers with special meaning" | ||||
|     if (m_interface->languageFeatures().cxx11Enabled) { | ||||
|         addCompletionItem(QLatin1String("override"), m_icons.keywordIcon(), KeywordsOrder); | ||||
|         addCompletionItem(QLatin1String("final"), m_icons.keywordIcon(), KeywordsOrder); | ||||
|     } | ||||
| } | ||||
|  | ||||
| void InternalCppCompletionAssistProcessor::addMacros(const QString &fileName, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user