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

Function isLibraryType

lib/tokenize.cpp:10355–10360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10353}
10354
10355static bool isLibraryType(const Token* tok, const Library& library)
10356{
10357 return library.hasAnyTypeCheck("std::" + tok->str()) ||
10358 library.podtype("std::" + tok->str()) ||
10359 isStdContainerOrIterator(tok, library);
10360}
10361
10362// Add std:: in front of std classes, when using namespace std; was given
10363void Tokenizer::simplifyNamespaceStd()

Callers 1

simplifyNamespaceStdMethod · 0.85

Calls 4

isStdContainerOrIteratorFunction · 0.85
hasAnyTypeCheckMethod · 0.80
strMethod · 0.45
podtypeMethod · 0.45

Tested by

no test coverage detected