Author: Baranov Victor Date: 2026-02-23T11:18:11+03:00 New Revision: f4f17bd86c14acb265e1caa7bdc5b3501a7e3b83
URL: https://github.com/llvm/llvm-project/commit/f4f17bd86c14acb265e1caa7bdc5b3501a7e3b83 DIFF: https://github.com/llvm/llvm-project/commit/f4f17bd86c14acb265e1caa7bdc5b3501a7e3b83.diff LOG: [clang-tidy][NFC] Fix misc-override-with-different-visibility warnings (#182763) Ran with config: ```yaml - key: misc-override-with-different-visibility.DisallowedVisibilityChange value: widening ``` I think we should only care about widening changes. Added: Modified: clang-tools-extra/clang-tidy/ClangTidy.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clang-tidy/ClangTidy.cpp b/clang-tools-extra/clang-tidy/ClangTidy.cpp index 9f5d21001ec89..7a898ef07b275 100644 --- a/clang-tools-extra/clang-tidy/ClangTidy.cpp +++ b/clang-tools-extra/clang-tidy/ClangTidy.cpp @@ -639,13 +639,14 @@ runClangTidy(clang::tidy::ClangTidyContext &Context, class Action : public ASTFrontendAction { public: Action(ClangTidyASTConsumerFactory *Factory) : Factory(Factory) {} + + private: + ClangTidyASTConsumerFactory *Factory; + std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &Compiler, StringRef File) override { return Factory->createASTConsumer(Compiler, File); } - - private: - ClangTidyASTConsumerFactory *Factory; }; ClangTidyASTConsumerFactory ConsumerFactory; _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
