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

Method characterLiteral

test/testclangimport.cpp:205–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 }
204
205 void characterLiteral() {
206 const char clang[] = "`-VarDecl 0x3df8608 <a.cpp:1:1, col:10> col:6 c 'char' cinit\n"
207 " `-CharacterLiteral 0x3df86a8 <col:10> 'char' 120";
208 ASSERT_EQUALS("char c@1 = 'x' ;", parse(clang));
209 }
210
211 void class1() {
212 const char clang[] = "`-CXXRecordDecl 0x274c638 <a.cpp:1:1, col:25> col:7 class C definition\n"

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected