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

Method pragma

test/testpreprocessor.cpp:1484–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1482 }
1483
1484 void pragma() {
1485 const char filedata[] = "#pragma once\n"
1486 "void f()\n"
1487 "{\n"
1488 "}\n";
1489
1490 // Preprocess => actual result..
1491 const std::map<std::string, std::string> actual = getcode(settings0, *this, filedata);
1492
1493 // Compare results..
1494 ASSERT_EQUALS(1, actual.size());
1495 ASSERT_EQUALS("\nvoid f ( )\n{\n}", actual.at(""));
1496 }
1497
1498 void pragma_asm_1() {
1499 const char filedata[] = "#pragma asm\n"

Callers

nothing calls this directly

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected