Details
- Reviewers
aaron.ballman - Commits
- rG98e8f774eb6c: Add method to ignore invisible AST nodes
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/include/clang/AST/Expr.h | ||
---|---|---|
769–770 | Invisible is a bit of an odd term because the AST nodes themselves are in fact visible within the AST. I think this means "invisible" as in "not corresponding directly to syntax the user wrote". Bikeshedding some other names:
other suggestions welcome. | |
clang/lib/AST/Expr.cpp | ||
3024–3026 | Can remove the spurious newline, and these should be named according to the usual naming conventions (I'd go with E and LastE, but feel free to pick less terrible names). | |
3032 | Drop top-level const (I wouldn't be sad if it also lost the auto at the same time). | |
3034 | const auto * | |
3036 | const Expr * | |
3037 | !isa<CXXTemporaryObjectExpr>(C) since you're not using the returned value anyway. | |
3042 | const auto * | |
3043 | const Expr * Are you sure you mean to skip parens here, as those are written in source? | |
3044 | Elide braces |
It wasn't possible to add the const because of the return type.
clang/include/clang/AST/Expr.h | ||
---|---|---|
769–770 | Changed as discussed on IRC. |
Invisible is a bit of an odd term because the AST nodes themselves are in fact visible within the AST. I think this means "invisible" as in "not corresponding directly to syntax the user wrote". Bikeshedding some other names:
other suggestions welcome.