https://github.com/atetubou created 
https://github.com/llvm/llvm-project/pull/145654

This is similar PR to https://github.com/llvm/llvm-project/pull/131569, but for 
GlobalAllocationFunctionVisibility.

>From 74514982213e31702469c1dc08c1e17008c840e6 Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tik...@google.com>
Date: Wed, 25 Jun 2025 17:53:41 +0900
Subject: [PATCH] change benign

---
 clang/include/clang/Basic/LangOptions.def | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/include/clang/Basic/LangOptions.def 
b/clang/include/clang/Basic/LangOptions.def
index 789761c1f3647..9e1c0630acc03 100644
--- a/clang/include/clang/Basic/LangOptions.def
+++ b/clang/include/clang/Basic/LangOptions.def
@@ -329,8 +329,8 @@ BENIGN_LANGOPT(IgnoreXCOFFVisibility, 1, 0, "All the 
visibility attributes that
 BENIGN_LANGOPT(VisibilityInlinesHiddenStaticLocalVar, 1, 0,
                "hidden visibility for static local variables in inline C++ "
                "methods when -fvisibility-inlines hidden is enabled")
-ENUM_LANGOPT(GlobalAllocationFunctionVisibility, VisibilityForcedKinds, 3, 
VisibilityForcedKinds::ForceDefault,
-             "How to apply visibility to global operator new and delete 
declarations")
+BENIGN_ENUM_LANGOPT(GlobalAllocationFunctionVisibility, VisibilityForcedKinds, 
3, VisibilityForcedKinds::ForceDefault,
+                   "How to apply visibility to global operator new and delete 
declarations")
 LANGOPT(NewInfallible , 1, 0, "Treats throwing global C++ operator new as 
always returning valid memory (annotates with __attribute__((returns_nonnull)) 
and throw()). This is detectable in source.")
 BENIGN_LANGOPT(ParseUnknownAnytype, 1, 0, "__unknown_anytype")
 BENIGN_LANGOPT(DebuggerSupport , 1, 0, "debugger support")

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to