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

Method stringify

test/testpreprocessor.cpp:1436–1444  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1434
1435
1436 void stringify() {
1437 const char filedata[] = "#define STRINGIFY(x) #x\n"
1438 "STRINGIFY(abc)\n";
1439
1440 // expand macros..
1441 std::string actual = expandMacros(filedata, *this);
1442
1443 ASSERT_EQUALS("\n\"abc\"", actual);
1444 }
1445
1446 void stringify2() {
1447 const char filedata[] = "#define A(x) g(#x)\n"

Callers 4

expandMacrosMethod · 0.45
FileLocationConstructMethod · 0.45
FileLocationSetFileMethod · 0.45
FileLocationSetFile2Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected