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

Function isAttribute

lib/tokenize.cpp:9475–9477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9473}
9474
9475static bool isAttribute(const Token* tok, bool gcc) {
9476 return gcc ? Token::Match(tok, "__attribute__|__attribute (") : Token::Match(tok, "__declspec|_declspec (");
9477}
9478
9479static Token* getTokenAfterAttributes(Token* tok, bool gccattr) {
9480 Token* after = tok;

Callers 3

getTokenAfterAttributesFunction · 0.85
simplifyDeclspecMethod · 0.85
simplifyAttributeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected