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

Method createSymbolDatabaseVariableInfo

lib/symboldatabase.cpp:884–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

882
883
884void SymbolDatabase::createSymbolDatabaseVariableInfo()
885{
886 // fill in variable info
887 for (Scope& scope : scopeList) {
888 // find variables
889 scope.getVariableList();
890 }
891
892 // fill in function arguments
893 for (Scope& scope : scopeList) {
894 for (auto func = scope.functionList.begin(); func != scope.functionList.end(); ++func) {
895 // add arguments
896 func->addArguments(&scope);
897 }
898 }
899}
900
901void SymbolDatabase::createSymbolDatabaseCopyAndMoveConstructors()
902{

Callers

nothing calls this directly

Calls 4

addArgumentsMethod · 0.80
getVariableListMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected