Skip to content

Commit 62beb7c

Browse files
committed
[clang-tidy] Fix module options being registered with different priorities
Not a bug that is ever likely to materialise, but still worth fixing Reviewed By: DmitryPolukhin Differential Revision: https://reviews.llvm.org/D84850
1 parent bfa1403 commit 62beb7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,9 @@ ClangTidyOptions ClangTidyOptions::getDefaults() {
114114
Options.SystemHeaders = false;
115115
Options.FormatStyle = "none";
116116
Options.User = llvm::None;
117-
unsigned Priority = 0;
118117
for (const ClangTidyModuleRegistry::entry &Module :
119118
ClangTidyModuleRegistry::entries())
120-
Options =
121-
Options.mergeWith(Module.instantiate()->getModuleOptions(), ++Priority);
119+
Options = Options.mergeWith(Module.instantiate()->getModuleOptions(), 0);
122120
return Options;
123121
}
124122

0 commit comments

Comments
 (0)