Details
- Reviewers
gribozavr2
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang/unittests/Tooling/CXXOperatorCallExprTest.cpp | ||
---|---|---|
2 | This file is in the unittests/Tooling instead in the unittests/AST directory because I wanted to have access to the TestVisitor infrastructure. I know the solution is not optimal and I am looking for suggestions | |
30 | Previous code do something else. Look at CallsVisitor in clang/unittests/Tooling/SourceCodeTest.cpp . I prefer this approach because
|
clang/unittests/Tooling/CXXOperatorCallExprTest.cpp | ||
---|---|---|
2 | Could you make a separate patch where you move TestVisitor.h under clang/include/clang/Testing? Then you can place this test into unittests/AST. OTOH, since the test is not testing the visitation, WDYT about changing the test to use AST matchers instead? It would seem to lead to more straightforward tests: get the AST node, act on it. See clang/unittests/AST/MatchVerifier.h. | |
21 | Please add a space before "{". | |
24 | Please add a space before "{". (Throughout the patch.) |
This file is in the unittests/Tooling instead in the unittests/AST directory because I wanted to have access to the TestVisitor infrastructure. I know the solution is not optimal and I am looking for suggestions