forked from OSchip/llvm-project
[clang-diff] Refactor stop-after command-line flag
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 llvm-svn: 311476
This commit is contained in:
parent
7a8ad2e7f0
commit
46307d7350
|
@ -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.
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue