From 0bd401c17b3cf62d6ee91e064d1a822bce4bb166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 6 Jan 2021 11:07:21 +0100 Subject: [PATCH] ClangImport; Assign token indexes --- lib/clangimport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 31fd74e50..012bb0537 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -1558,6 +1558,7 @@ void clangimport::parseClangAstDump(Tokenizer *tokenizer, std::istream &f) throw InternalError(tok, "Token::link() is not set properly"); } + tokenList->front()->assignIndexes(); symbolDatabase->clangSetVariables(data.getVariableList()); symbolDatabase->createSymbolDatabaseExprIds(); tokenList->clangSetOrigFiles();