The ExprWithCleanups node is added to the AST along with the elidable
CXXConstructExpr. If it is the outermost node of the node being matched, ignore
it as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
6538 ↗ | (On Diff #214123) | while you're editing it: "elidable copy constructors" |
6540 ↗ | (On Diff #214123) | "elide these differences" => "abstract over these differences"? |
6541 ↗ | (On Diff #214123) | "This matcher skips elidable constructor call AST nodes, ... "? |
6556 ↗ | (On Diff #214123) | Could you add this matcher as a test? |
Comment Actions
Thanks for the comments. I struggled with the wording so your edits are appreciated.
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
6556 ↗ | (On Diff #214123) | Done Also, I noticed that the matcher is classified as "Traversal" yet its tests are in ASTMatchersNarrowingTest.cpp. Any objection to my moving the tests to ASTMatchersTraversalTest.cpp as a followup patch? |
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
6556 ↗ | (On Diff #214123) | That would make a lot of sense, thank you! |