forked from qt-creator/qt-creator
ClangCodeModel: Fix context processor
Checking for potential include file completion should only consider string literals, not number literals. Fixes: QTCREATORBUG-30607 Change-Id: Ibfb422f1d8be5a5d30489383ecbc359f5ea4a2a9 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -132,7 +132,7 @@ void ActivationSequenceContextProcessor::processComment()
|
|||||||
|
|
||||||
void ActivationSequenceContextProcessor::processInclude()
|
void ActivationSequenceContextProcessor::processInclude()
|
||||||
{
|
{
|
||||||
if (m_token.isLiteral() && !isCompletionKindStringLiteralOrSlash())
|
if (m_token.isStringLiteral() && !isCompletionKindStringLiteralOrSlash())
|
||||||
m_completionKind = CPlusPlus::T_EOF_SYMBOL;
|
m_completionKind = CPlusPlus::T_EOF_SYMBOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user