[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 25 22:49:27 PDT 2025


================
@@ -139,6 +139,11 @@ class MatchFinder {
     ///
     /// It prints a report after match.
     std::optional<Profiling> CheckProfiling;
+
+    bool SkipDeclsInModules = false;
+
+    MatchFinderOptions()
+        : CheckProfiling(std::nullopt), SkipDeclsInModules(false) {}
----------------
ChuanqiXu9 wrote:

My compiler told me: "default member initializer for 'SkipDeclsInModules' needed within definition of enclosing class 'MatchFinder' outside of member functions" and I searched https://stackoverflow.com/questions/43819314/default-member-initializer-needed-within-definition-of-enclosing-class-outside it seems like clang may be too strict on something.

https://github.com/llvm/llvm-project/pull/145630


More information about the cfe-commits mailing list