MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / createTokens1

Method createTokens1

lib/clangimport.cpp:342–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341 void dumpAst(int num = 0, int indent = 0) const;
342 void createTokens1(TokenList &tokenList) {
343 //dumpAst(); // TODO: reactivate or remove
344 if (isPrologueTypedefDecl())
345 return;
346 if (!tokenList.back()) {
347 setLocations(tokenList, 0, 1, 1);
348 }
349 else
350 setLocations(tokenList, tokenList.back()->fileIndex(), tokenList.back()->linenr(), 1);
351 createTokens(tokenList);
352 if (nodeType == VarDecl || nodeType == RecordDecl || nodeType == TypedefDecl)
353 addtoken(tokenList, ";");
354 mData->mNotScope.clear();
355 }
356
357 /**
358 * @throws InternalError thrown if index is out of bounds

Callers 1

parseClangAstDumpMethod · 0.80

Calls 2

fileIndexMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected