[all-commits] [llvm/llvm-project] 3b929f: [Syntax] Assert invariants on tree structure and f...

Ilya Biryukov via All-commits all-commits at lists.llvm.org
Tue Jan 14 07:31:33 PST 2020


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

  Changed paths:
    M clang/include/clang/Tooling/Syntax/Tree.h
    M clang/lib/Tooling/Syntax/BuildTree.cpp
    M clang/lib/Tooling/Syntax/Mutations.cpp
    M clang/lib/Tooling/Syntax/Synthesis.cpp
    M clang/lib/Tooling/Syntax/Tree.cpp

  Log Message:
  -----------
  [Syntax] Assert invariants on tree structure and fix a bug in mutations

Add checks for some structural invariants when building and mutating
the syntax trees.

Fix a bug failing the invariants after mutations: the parent of nodes
added into the tree was null.




More information about the All-commits mailing list