@@ -227,8 +227,7 @@ template <> struct MappingTraits<ClangTidyOptions> {
227227 Options.ExcludeHeaderFilterRegex );
228228 IO.mapOptional (" FormatStyle" , Options.FormatStyle );
229229 IO.mapOptional (" User" , Options.User );
230- IO.mapOptional (" CompilationArgsToRemoveRegex" ,
231- Options.CompilationArgsToRemoveRegex );
230+ IO.mapOptional (" RemovedArgs" , Options.RemovedArgs );
232231 IO.mapOptional (" CheckOptions" , Options.CheckOptions );
233232 IO.mapOptional (" ExtraArgs" , Options.ExtraArgs );
234233 IO.mapOptional (" ExtraArgsBefore" , Options.ExtraArgsBefore );
@@ -254,7 +253,7 @@ ClangTidyOptions ClangTidyOptions::getDefaults() {
254253 Options.SystemHeaders = false ;
255254 Options.FormatStyle = " none" ;
256255 Options.User = std::nullopt ;
257- Options.CompilationArgsToRemoveRegex = std::nullopt ;
256+ Options.RemovedArgs = std::nullopt ;
258257 for (const ClangTidyModuleRegistry::entry &Module :
259258 ClangTidyModuleRegistry::entries ())
260259 Options.mergeWith (Module.instantiate ()->getModuleOptions (), 0 );
@@ -295,8 +294,7 @@ ClangTidyOptions &ClangTidyOptions::mergeWith(const ClangTidyOptions &Other,
295294 overrideValue (SystemHeaders, Other.SystemHeaders );
296295 overrideValue (FormatStyle, Other.FormatStyle );
297296 overrideValue (User, Other.User );
298- overrideValue (CompilationArgsToRemoveRegex,
299- Other.CompilationArgsToRemoveRegex );
297+ mergeVectors (RemovedArgs, Other.RemovedArgs );
300298 overrideValue (UseColor, Other.UseColor );
301299 mergeVectors (ExtraArgs, Other.ExtraArgs );
302300 mergeVectors (ExtraArgsBefore, Other.ExtraArgsBefore );
0 commit comments