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

Method dumpAlignas

test/testtokenize.cpp:8509–8517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8507 }
8508
8509 void dumpAlignas() {
8510 SimpleTokenizer tokenizer(settingsDefault, *this, false);
8511 ASSERT(tokenizer.tokenize("int alignas(8) alignas(16) x;"));
8512 ASSERT(Token::simpleMatch(tokenizer.tokens(), "int x ;"));
8513 std::ostringstream ostr;
8514 tokenizer.dump(ostr);
8515 const std::string dump = ostr.str();
8516 ASSERT(dump.find(" alignas=\"8\" alignas2=\"16\"") != std::string::npos);
8517 }
8518
8519 void simplifyCoroutines() {
8520 const Settings settings = settingsBuilder().cpp(Standards::CPP20).build();

Callers

nothing calls this directly

Calls 5

tokenizeMethod · 0.80
simpleMatchFunction · 0.50
dumpMethod · 0.45
strMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected