llvm-project/clang/lib/Tooling/Syntax
Eduardo Caldas 66bcb14312 [SyntaxTree][Synthesis] Fix: `deepCopy` -> `deepCopyExpandingMacros`.
There can be Macros that are tagged with `modifiable`. Thus verifying
`canModifyAllDescendants` is not sufficient to avoid macros when deep
copying.

We think the `TokenBuffer` could inform us whether a `Token` comes from
a macro. We'll look into that when we can surface this information
easily, for instance in unit tests for `ComputeReplacements`.

Differential Revision: https://reviews.llvm.org/D88034
2020-09-22 09:15:21 +00:00
..
BuildTree.cpp [SyntaxTree][NFC] follow naming convention + remove auto on empty vector declaration 2020-09-21 11:45:15 +00:00
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
ComputeReplacements.cpp [SyntaxTree] Add const qualifiers, from [llvm-qualified-auto] 2020-09-11 18:39:02 +00:00
Mutations.cpp [SyntaxTree] Rename functions to start with verb 2020-09-11 14:54:18 +00:00
Nodes.cpp [SyntaxTree][NFC] follow naming convention + remove auto on empty vector declaration 2020-09-21 11:45:15 +00:00
Synthesis.cpp [SyntaxTree][Synthesis] Fix: `deepCopy` -> `deepCopyExpandingMacros`. 2020-09-22 09:15:21 +00:00
Tokens.cpp [Syntax] expose API for expansions overlapping a spelled token range. 2020-07-20 14:48:12 +02:00
Tree.cpp [SyntaxTree] Test `findFirstLeaf` and `findLastLeaf` 2020-09-22 06:47:36 +00:00