diff options
| author | Ilya Biryukov <ibiryukov@google.com> | 2020-01-14 16:27:06 +0100 |
|---|---|---|
| committer | Ilya Biryukov <ibiryukov@google.com> | 2020-01-14 16:41:09 +0100 |
| commit | 07a41018e9d27f67f7b4295eb7e00e0345c0aacf (patch) | |
| tree | 04639b8d6f393da8f548a908e8f56a7c22af5025 /clang/include | |
| parent | 3b929fe7763570fc1d4a4691a53257a4a0b7760e (diff) | |
| download | bcm5719-llvm-07a41018e9d27f67f7b4295eb7e00e0345c0aacf.tar.gz bcm5719-llvm-07a41018e9d27f67f7b4295eb7e00e0345c0aacf.zip | |
[Syntax] Mark synthesized nodes as modifiable
This was an oversight in the original patch.
Also add corresponding tests.
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Tooling/Syntax/Tree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/include/clang/Tooling/Syntax/Tree.h b/clang/include/clang/Tooling/Syntax/Tree.h index 640697a25f3..8702fe60ce1 100644 --- a/clang/include/clang/Tooling/Syntax/Tree.h +++ b/clang/include/clang/Tooling/Syntax/Tree.h @@ -123,6 +123,8 @@ private: friend class TreeBuilder; // MutationsImpl sets roles and CanModify flag. friend class MutationsImpl; + // FactoryImpl sets CanModify flag. + friend class FactoryImpl; Tree *Parent; Node *NextSibling; |

