[clang-tools-extra] [clang-tidy][NFC] Don't store a redundant copy of `HeaderFileExtensions` in every check (PR #190302)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 00:00:06 PDT 2026


================
@@ -480,6 +480,16 @@ class ClangTidyCheck : public ast_matchers::MatchFinder::MatchCallback {
     ClangTidyContext *Context;
   };
 
+  /// Returns the list of header file extensions from the context.
+  const FileExtensionsSet &getHeaderFileExtensions() const {
+    return Context->getHeaderFileExtensions();
+  }
+
+  /// Returns the list of implementation file extensions from the context.
+  const FileExtensionsSet &getImplementationFileExtensions() const {
+    return Context->getImplementationFileExtensions();
+  }
----------------
vbvictor wrote:

I don't see:)

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


More information about the cfe-commits mailing list