]> granicus.if.org Git - clang/commitdiff
[clang-diff] Refactor stop-after command-line flag
authorJacob Gravelle <jgravelle@google.com>
Tue, 22 Aug 2017 17:42:44 +0000 (17:42 +0000)
committerJacob Gravelle <jgravelle@google.com>
Tue, 22 Aug 2017 17:42:44 +0000 (17:42 +0000)
Summary:
Rename stop-after to stop-diff-after. When building LLVM with
-DLLVM_BUILD_LLVM_DYLIB=ON, stop-after collides with the stop-after
already present in LLVM.

Reviewers: johannes, arphaman

Subscribers: klimek, aheejin, cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311476 91177308-0d34-0410-b5e6-96231b3b80d8

test/Tooling/clang-diff-topdown.cpp
tools/clang-diff/ClangDiff.cpp

index 8e78a03d83532c544f5fd1bf29fd44b9d859a789..d6c1d770333babd79711ddd42d7e81cefbbff1d3 100644 (file)
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -E %s > %t.src.cpp
 // RUN: %clang_cc1 -E %s > %t.dst.cpp -DDEST
-// RUN: clang-diff -dump-matches -stop-after=topdown %t.src.cpp %t.dst.cpp -- -std=c++11 | FileCheck %s
+// RUN: clang-diff -dump-matches -stop-diff-after=topdown %t.src.cpp %t.dst.cpp -- -std=c++11 | FileCheck %s
 //
 // Test the top-down matching of identical subtrees only.
 
index 3f1980c70200addf8a80d4429212c34e247cbe50..7237e8c1af0091f6814111e8d256a75924f0cf44 100644 (file)
@@ -50,7 +50,7 @@ static cl::opt<std::string> DestinationPath(cl::Positional,
                                             cl::Optional,
                                             cl::cat(ClangDiffCategory));
 
-static cl::opt<std::string> StopAfter("stop-after",
+static cl::opt<std::string> StopAfter("stop-diff-after",
                                       cl::desc("<topdown|bottomup>"),
                                       cl::Optional, cl::init(""),
                                       cl::cat(ClangDiffCategory));