summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Port getLocStart -> getBeginLocStephen Kelly2018-08-091-1/+1
| | | | | | | | | | Reviewers: teemperor! Subscribers: jholewinski, whisperity, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D50350 llvm-svn: 339385
* Replacing "or" with "||" to appease MSVC.Aaron Ballman2017-09-061-1/+1
| | | | llvm-svn: 312639
* [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitorJohannes Altmanninger2017-09-061-8/+72
| | | | | | | | | | | | | | | | Summary: This affects overloaded operators, which are represented by a CXXOperatorCallExpr whose first child is always a DeclRefExpr referring to the operator. For infix, postfix and call operators we want the first argument to be traversed before the operator. Reviewers: arphaman Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D37200 llvm-svn: 312633
* [AST] Traverse templates in LexicallyOrderedRecursiveASTVisitorJohannes Altmanninger2017-09-061-4/+26
| | | | | | | | | | | | | | | | | Summary: We need to specialize this because RecursiveASTVisitor visits template template parameters after the templated declaration, unlike the order in which they appear in the source code. Reviewers: arphaman Reviewed By: arphaman Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D36998 llvm-svn: 312631
* [refactor] Add the AST source selection componentAlex Lorenz2017-08-241-0/+141
This commit adds the base AST source selection component to the refactoring library. AST selection is represented using a tree of SelectedASTNode values. Each selected node gets its own selection kind, which can actually be None even in the middle of tree (e.g. statement in a macro whose child is in a macro argument). The initial version constructs a "raw" selection tree, without applying filters and canonicalisation operations to the nodes. Differential Revision: https://reviews.llvm.org/D35012 llvm-svn: 311655
OpenPOWER on IntegriCloud