[all-commits] [llvm/llvm-project] 4178f8: [SyntaxTree] Improve safety of `replaceChildRangeL...

Eduardo Caldas via All-commits all-commits at lists.llvm.org
Wed Oct 14 02:21:16 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4178f8f2f08e14abb341fb32dd0f4cc9320df072
      https://github.com/llvm/llvm-project/commit/4178f8f2f08e14abb341fb32dd0f4cc9320df072
  Author: Eduardo Caldas <ecaldas at google.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

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

  Log Message:
  -----------
  [SyntaxTree] Improve safety of `replaceChildRangeLowLevel`

* Add assertions for other preconditions.
* If nothing is modified, don't mark it.

Differential Revision: https://reviews.llvm.org/D89303




More information about the All-commits mailing list