[PATCH] D84850: [clang-tidy] Fix module options being registered with different priorities

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 29 08:01:59 PDT 2020


njames93 created this revision.
njames93 added a reviewer: DmitryPolukhin.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
njames93 requested review of this revision.

Not a bug that is ever likely to materialise, but still worth fixing


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84850

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


Index: clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
===================================================================
--- clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
+++ clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
@@ -114,11 +114,9 @@
   Options.SystemHeaders = false;
   Options.FormatStyle = "none";
   Options.User = llvm::None;
-  unsigned Priority = 0;
   for (const ClangTidyModuleRegistry::entry &Module :
        ClangTidyModuleRegistry::entries())
-    Options =
-        Options.mergeWith(Module.instantiate()->getModuleOptions(), ++Priority);
+    Options = Options.mergeWith(Module.instantiate()->getModuleOptions(), 0);
   return Options;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84850.281595.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200729/c31d4e57/attachment.bin>


More information about the cfe-commits mailing list