File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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]
You can’t perform that action at this time.
0 commit comments