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();