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

Method empty

test/testlibrary.cpp:96–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 }
95
96 void empty() const {
97 // Reading an empty library file is considered to be OK
98 constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n<def/>";
99 Library library;
100 ASSERT(LibraryHelper::loadxmldata(library, xmldata, sizeof(xmldata)));
101 ASSERT(library.functions().empty());
102 }
103
104 void function() const {
105 constexpr char xmldata[] = "<?xml version=\"1.0\"?>\n"

Callers 15

getCppFilesFunction · 0.45
makeMatchcompilerFunction · 0.45
mainFunction · 0.45
preprocessMethod · 0.45
getcodeMethod · 0.45
getErrorMessagesMethod · 0.45
valueFlowPointerAliasMethod · 0.45
valueFlowLifetimeMethod · 0.45
valueFlowCalculationsMethod · 0.45
valueFlowFwdAnalysisMethod · 0.45
valueFlowForLoopMethod · 0.45
valueFlowUninitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected