[clang] [clang] Parse attribute [[gnu::no_stack_protector]] (PR #75289)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 12 22:57:39 PST 2023
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Sirui Mu (Lancern)
<details>
<summary>Changes</summary>
This commit adds relative TableGen definitions to parse the `[[gnu::no_stack_protector]]` attribute.
This PR addresses issue #<!-- -->75235.
---
Full diff: https://github.com/llvm/llvm-project/pull/75289.diff
1 Files Affected:
- (modified) clang/include/clang/Basic/Attr.td (+2-1)
``````````diff
diff --git a/clang/include/clang/Basic/Attr.td b/clang/include/clang/Basic/Attr.td
index 0d94ea2851c9ab..0344fa23e15369 100644
--- a/clang/include/clang/Basic/Attr.td
+++ b/clang/include/clang/Basic/Attr.td
@@ -2212,7 +2212,8 @@ def NotTailCalled : InheritableAttr {
def : MutualExclusions<[AlwaysInline, NotTailCalled]>;
def NoStackProtector : InheritableAttr {
- let Spellings = [Clang<"no_stack_protector">, Declspec<"safebuffers">];
+ let Spellings = [Clang<"no_stack_protector">, CXX11<"gnu", "no_stack_protector">,
+ C23<"gnu", "no_stack_protector">, Declspec<"safebuffers">];
let Subjects = SubjectList<[Function]>;
let Documentation = [NoStackProtectorDocs];
let SimpleHandler = 1;
``````````
</details>
https://github.com/llvm/llvm-project/pull/75289
More information about the cfe-commits
mailing list