MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / maybeUnusedTest

Function maybeUnusedTest

tests/AttributesTest.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 struct [[nodiscard("just a test")]] nodiscardWithMsgTest{};
31
32 [[maybe_unused]] void maybeUnusedTest([[maybe_unused]] bool b)
33 {
34 [[maybe_unused]] bool b2 = b;
35 }
36
37// C++20
38#if 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected