[clang] [clang] Mark GlobalAllocationFunctionVisibility as benign. (PR #145654)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 02:07:41 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Takuto Ikuta (atetubou)
<details>
<summary>Changes</summary>
This is similar PR to https://github.com/llvm/llvm-project/pull/131569, but for GlobalAllocationFunctionVisibility.
---
Full diff: https://github.com/llvm/llvm-project/pull/145654.diff
1 Files Affected:
- (modified) clang/include/clang/Basic/LangOptions.def (+2-2)
``````````diff
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")
``````````
</details>
https://github.com/llvm/llvm-project/pull/145654
More information about the cfe-commits
mailing list