[all-commits] [llvm/llvm-project] 013c07: [Syntax] Unset IsOriginal flag on nodes removed fr...

Ilya Biryukov via All-commits all-commits at lists.llvm.org
Tue Jan 14 08:01:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 013c07f697886649b068cd97127e528b4fe7c03e
      https://github.com/llvm/llvm-project/commit/013c07f697886649b068cd97127e528b4fe7c03e
  Author: Ilya Biryukov <ibiryukov at google.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M clang/lib/Tooling/Syntax/Tree.cpp
    M clang/unittests/Tooling/Syntax/TreeTest.cpp

  Log Message:
  -----------
  [Syntax] Unset IsOriginal flag on nodes removed from the tree

And add a corresponding test.
Only nodes inside the TranslationUnit subtree can be marked as original,
computeReplacements() relies on this.




More information about the All-commits mailing list