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

Method class1

test/testclangimport.cpp:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210
211 void class1() {
212 const char clang[] = "`-CXXRecordDecl 0x274c638 <a.cpp:1:1, col:25> col:7 class C definition\n"
213 " |-DefinitionData pass_in_registers empty aggregate standard_layout trivially_copyable pod trivial literal has_constexpr_non_copy_move_ctor can_const_default_init\n"
214 " | |-DefaultConstructor exists trivial constexpr needs_implicit defaulted_is_constexpr\n"
215 " | |-CopyConstructor simple trivial has_const_param needs_implicit implicit_has_const_param\n"
216 " | |-MoveConstructor exists simple trivial needs_implicit\n"
217 " | |-CopyAssignment trivial has_const_param needs_implicit implicit_has_const_param\n"
218 " | |-MoveAssignment exists simple trivial needs_implicit\n"
219 " | `-Destructor simple irrelevant trivial needs_implicit\n"
220 " |-CXXRecordDecl 0x274c758 <col:1, col:7> col:7 implicit class C\n"
221 " `-CXXMethodDecl 0x274c870 <col:11, col:23> col:16 foo 'void ()'\n"
222 " `-CompoundStmt 0x274c930 <col:22, col:23>";
223 ASSERT_EQUALS("class C { void foo ( ) { } } ;", parse(clang));
224 }
225
226 void classTemplateDecl1() {
227 const char clang[] = "`-ClassTemplateDecl 0x29d1748 <a.cpp:1:1, col:59> col:25 C\n"

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected