forked from qt-creator/qt-creator
clangbackend: Provide highlighting for structured bindings
These are reported by libclang as "unexposed declarations". Fixes: QTCREATORBUG-24769 Change-Id: I7a74b707f4203becabaa74b90758a7b396ee23bd Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -374,6 +374,7 @@ void TokenInfo::identifierKind(const Cursor &cursor, Recursion recursion)
|
||||
case CXCursor_ParmDecl:
|
||||
case CXCursor_VarDecl:
|
||||
case CXCursor_VariableRef:
|
||||
case CXCursor_UnexposedDecl: // structured bindings; see https://reviews.llvm.org/D78213
|
||||
variableKind(cursor.referenced());
|
||||
break;
|
||||
case CXCursor_DeclRefExpr:
|
||||
|
||||
Reference in New Issue
Block a user