Home
last modified time | relevance | path

Searched refs:testWalk (Results 1 – 1 of 1) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/include-cleaner/unittests/
H A DWalkASTTest.cpp20 void testWalk(llvm::StringRef TargetCode, llvm::StringRef ReferencingCode) { in testWalk() function
81 testWalk("int ^x;", "int y = ^x;"); in TEST()
82 testWalk("int ^foo();", "int y = ^foo();"); in TEST()
83 testWalk("namespace ns { int ^x; }", "int y = ns::^x;"); in TEST()
84 testWalk("struct S { static int ^x; };", "int y = S::^x;"); in TEST()
86 testWalk("extern int ^x; int x;", "int y = ^x;"); in TEST()
90 testWalk("struct ^S {};", "^S *y;"); in TEST()
91 testWalk("enum ^E {};", "^E *y;"); in TEST()
92 testWalk("struct ^S { static int x; };", "int y = ^S::x;"); in TEST()
96 testWalk(R"cpp( in TEST()
[all …]