summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Tooling/ASTSelectionTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [refactor][selection] canonicalize decl ref callee to the call exprAlex Lorenz2017-11-141-0/+26
| | | | | | | We would like to extract the full call when just the callee function is selected llvm-svn: 318215
* [refactor][selection] canonicalize member expr callee to the fullAlex Lorenz2017-11-141-0/+52
| | | | | | | | member call expression We would like to extract the full call when just the callee is selected. llvm-svn: 318205
* [refactor][selection] canonicalize selected string literal to objcAlex Lorenz2017-11-021-0/+32
| | | | | | string literal when possible llvm-svn: 317224
* [refactor][selection] code ranges can be selected in objc methodsAlex Lorenz2017-11-011-0/+76
| | | | llvm-svn: 317054
* [refactor] select the entire DeclStmt if one ifs decls is selectedAlex Lorenz2017-10-311-0/+56
| | | | llvm-svn: 316971
* [refactor] Add a doc comment to the test function in the selectionAlex Lorenz2017-10-181-0/+5
| | | | | | | | unittest. As suggested by Haojian Wu! llvm-svn: 316105
* [refactor] selection: new CodeRangeASTSelection represents a set of selectedAlex Lorenz2017-10-181-7/+193
| | | | | | | | | | | consecutive statements This commit adds a CodeRangeASTSelection value to the refactoring library. This value represents a set of selected statements in one body of code. Differential Revision: https://reviews.llvm.org/D38835 llvm-svn: 316104
* Avoid 'size_t' typedef in the unittest ObjC codeAlex Lorenz2017-08-301-3/+3
| | | | | | | This should fix http://bb.pgr.jp/builders/test-clang-msc-x64-on-i686-linux-RA llvm-svn: 312133
* Recommit r312127: [refactor] AST selection tree should contain syntacticAlex Lorenz2017-08-301-0/+136
| | | | | | | | | | | | | | | | form of PseudoObjectExpr The new commit adjusts unittest test code compilation options so that the Objective-C code in the unittest can be parsed on non-macOS platforms. Original message: The AST selection finder now constructs a selection tree that contains only the syntactic form of PseudoObjectExpr. This form of selection tree is more meaningful when doing downstream analysis as we're interested in the syntactic features of the AST and the correct lexical parent relation. llvm-svn: 312132
* Revert r312127 as the ObjC unittest code fails to compile on LinuxAlex Lorenz2017-08-301-136/+0
| | | | llvm-svn: 312131
* [refactor] AST selection tree should contain syntactic formAlex Lorenz2017-08-301-0/+136
| | | | | | | | | | | of PseudoObjectExpr The AST selection finder now constructs a selection tree that contains only the syntactic form of PseudoObjectExpr. This form of selection tree is more meaningful when doing downstream analysis as we're interested in the syntactic features of the AST and the correct lexical parent relation. llvm-svn: 312127
* [refactor] Examine the whole range for ObjC @implementation declsAlex Lorenz2017-08-301-0/+19
| | | | | | when computing the AST selection llvm-svn: 312121
* Fix use-after-free in Clang's ASTSelection unittestAlex Lorenz2017-08-241-258/+271
| | | | llvm-svn: 311664
* [refactor] Add the AST source selection componentAlex Lorenz2017-08-241-0/+484
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