Author: Paul Kirth Date: 2026-05-22T13:31:47-07:00 New Revision: c61c8808b4aa1cbcde195859ddb5dd1402cb5914
URL: https://github.com/llvm/llvm-project/commit/c61c8808b4aa1cbcde195859ddb5dd1402cb5914 DIFF: https://github.com/llvm/llvm-project/commit/c61c8808b4aa1cbcde195859ddb5dd1402cb5914.diff LOG: [clang-doc][nfc] Silence tidy warning about anonymous namespace (#198071) clang-tidy complains that we should prefer static over the anonymous namespace, despite the API being static in addition to being in the anonymous namespace. We can silence the diagnostic by simply removing the namespace declaration. Added: Modified: clang-tools-extra/clang-doc/Serialize.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clang-doc/Serialize.cpp b/clang-tools-extra/clang-doc/Serialize.cpp index 9ab3de5d9b49f..ed850e04fc258 100644 --- a/clang-tools-extra/clang-doc/Serialize.cpp +++ b/clang-tools-extra/clang-doc/Serialize.cpp @@ -26,7 +26,6 @@ namespace clang { namespace doc { namespace serialize { -namespace { static StringRef exprToString(const clang::Expr *E) { clang::LangOptions Opts; clang::PrintingPolicy Policy(Opts); @@ -35,7 +34,6 @@ static StringRef exprToString(const clang::Expr *E) { E->printPretty(OS, nullptr, Policy); return internString(Result); } -} // namespace SymbolID hashUSR(llvm::StringRef USR) { return llvm::SHA1::hash(arrayRefFromStringRef(USR)); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
