Reid Kleckner
cd62511496
Remove clang::ast_type_traits namespace in favor of clang
...
DynTypedNode and ASTNodeKind are implemented as part of the clang AST
library, which uses the main clang namespace. There doesn't seem to be a
need for this extra level of namespacing.
I left behind aliases in the ast_type_traits namespace for out of tree
clients of these APIs. To provide aliases for the enumerators, I used
this pattern:
namespace ast_type_traits {
constexpr TraversalKind TK_AsIs = ::clang::TK_AsIs;
}
I think the typedefs will be useful for migration, but we might be able
to drop these enumerator aliases.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D74499
2020-02-13 10:46:47 -08:00
Stephen Kelly
9a3ff47823
Fix the invisible-traversal to ignore more nodes
2020-01-20 11:59:13 +00:00
Oliver Stannard
6c203149b6
[clang] Remove raw string literals in macros
...
Older (but still supported) versions of GCC don't handle C++11 raw
string literals in macro parameters correctly.
2020-01-13 12:38:58 +00:00
Stephen Kelly
5a79cfa32d
Customize simplified dumping and matching of LambdaExpr
...
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71680
2019-12-21 11:02:11 +00:00
Stephen Kelly
0378f3a903
Revert "Customize simplified dumping and matching of LambdaExpr"
...
This reverts commit 494b1318ca
.
2019-12-20 21:33:31 +00:00
Stephen Kelly
494b1318ca
Customize simplified dumping and matching of LambdaExpr
...
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71680
2019-12-20 21:13:23 +00:00
Stephen Kelly
98e8f774eb
Add method to ignore invisible AST nodes
...
Reviewers: aaron.ballman
Subscribers: mgorny, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70613
2019-12-18 22:33:23 +00:00
Stephen Kelly
84fd2bedf4
Trim trailing whitespace
2019-12-18 22:33:23 +00:00
Stephen Kelly
a9f597b62e
Output names in the AST in tests
2019-12-18 22:33:23 +00:00
Anton Bikineev
45f721ff05
[clang] Fix mismatched args constructing AddressSpaceAttr.
...
Differential Revision: https://reviews.llvm.org/D65589
llvm-svn: 368152
2019-08-07 11:12:43 +00:00
Stephen Kelly
ad3314b146
Add a Visit overload for DynTypedNode to ASTNodeTraverser
...
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61834
llvm-svn: 361117
2019-05-19 13:03:48 +00:00
Nico Weber
e78ac9cc72
Revert r361033 "Add a Visit overload for DynTypedNode to ASTNodeTraverser"
...
It fails to build on some bots.
Also revert follow-up r361055.
llvm-svn: 361059
2019-05-17 18:31:24 +00:00
Stephen Kelly
0855896c68
Add a Visit overload for DynTypedNode to ASTNodeTraverser
...
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D61834
llvm-svn: 361033
2019-05-17 13:55:28 +00:00