From afad8b1f5c2c5732c0353d169b1cb9ac50fd506f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 25 Jan 2020 11:58:40 +0100 Subject: [PATCH] Clang import; Set Scope::check --- lib/clangimport.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 1097c91ad..b84ec4ae7 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -471,6 +471,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType nestedIn->nestedList.push_back(scope); scope->type = scopeType; scope->classDef = def; + scope->check = nestedIn->check; Token *bodyStart = children[0]->addtoken(tokenList, "{"); tokenList->back()->scope(scope); for (AstNodePtr astNode: children) { @@ -1177,6 +1178,7 @@ void clangimport::parseClangAstDump(Tokenizer *tokenizer, std::istream &f) SymbolDatabase *symbolDatabase = const_cast(tokenizer->getSymbolDatabase()); symbolDatabase->scopeList.push_back(Scope(nullptr, nullptr, nullptr)); symbolDatabase->scopeList.back().type = Scope::ScopeType::eGlobal; + symbolDatabase->scopeList.back().check = symbolDatabase; clangimport::Data data; data.mSettings = tokenizer->getSettings();