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

Function isCPPAttribute

lib/tokenize.cpp:8532–8535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8530}
8531
8532static bool isCPPAttribute(const Token * tok)
8533{
8534 return Token::simpleMatch(tok, "[ [") && tok->link() && tok->link()->previous() == tok->linkAt(1);
8535}
8536
8537static bool isAlignAttribute(const Token * tok)
8538{

Callers 3

skipCPPOrAlignAttributeFunction · 0.85
findGarbageCodeMethod · 0.85
simplifyCPPAttributeMethod · 0.85

Calls 2

linkAtMethod · 0.80
simpleMatchFunction · 0.70

Tested by

no test coverage detected