Skip to content

Commit bf2f023

Browse files
committed
Code review
1 parent aa6b48f commit bf2f023

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clang-tools-extra/clang-tidy/ClangTidyOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ struct ClangTidyOptions {
152152
std::optional<ArgList> ExtraArgsBefore;
153153

154154
/// Remove command line arguments sent to the compiler matching this.
155-
std::optional<std::vector<std::string>> RemovedArgs;
155+
std::optional<ArgList> RemovedArgs;
156156

157157
/// Only used in the FileOptionsProvider and ConfigOptionsProvider. If true
158158
/// and using a FileOptionsProvider, it will take a configuration file in the

clang-tools-extra/test/clang-tidy/infrastructure/removed-args.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: not clang-tidy %s -- -fnot-an-option | FileCheck %s -check-prefix=INVALID-A
22
// RUN: clang-tidy %s --config="{RemovedArgs: ['-fnot-an-option']}" -- -fnot-an-option
33
// RUN: clang-tidy %s --config="{RemovedArgs: ['-fnot-another-option', '-fnot-an-option']}" -- -fnot-an-option -fnot-another-option
4+
// RUN: clang-tidy %s --removed-arg="-fnot-an-option" -- -fnot-an-option
45
// RUN: not clang-tidy %s --removed-arg="-fnot-an-option" -- -fnot-an-option -fnot-another-option | FileCheck %s -check-prefix=INVALID-B
56

67
// INVALID-A: error: unknown argument: '-fnot-an-option' [clang-diagnostic-error]

0 commit comments

Comments
 (0)