https://github.com/ilovepi updated 
https://github.com/llvm/llvm-project/pull/198071

>From 4d71176b45ee88e3bee3c33d9096cb379342c3ef Mon Sep 17 00:00:00 2001
From: Paul Kirth <[email protected]>
Date: Sat, 16 May 2026 01:47:30 +0000
Subject: [PATCH] [clang-doc][nfc] Silence tidy warning about anonymous
 namespace

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.
---
 clang-tools-extra/clang-doc/Serialize.cpp | 2 --
 1 file changed, 2 deletions(-)

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

Reply via email to