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

Method cstyleCastExpr

test/testclangimport.cpp:318–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 void cstyleCastExpr() {
319 const char clang[] = "`-VarDecl 0x2336aa0 <1.c:1:1, col:14> col:5 x 'int' cinit\n"
320 " `-CStyleCastExpr 0x2336b70 <col:9, col:14> 'int' <NoOp>\n"
321 " `-CharacterLiteral 0x2336b40 <col:14> 'int' 97";
322 ASSERT_EQUALS("int x@1 = ( int ) 'a' ;", parse(clang));
323 }
324
325 void cxxBoolLiteralExpr() {
326 const char clang[] = "`-VarDecl 0x3940608 <a.cpp:1:1, col:10> col:6 x 'bool' cinit\n"

Callers

nothing calls this directly

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected