[clang] [clang] Add `std::span` to the default gsl pointer annotation list. (PR #99622)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 19 02:49:48 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Haojian Wu (hokein)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/99622.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaAttr.cpp (+1)
``````````diff
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp
index aaabd989c5c9f..5a7f12c7689d4 100644
--- a/clang/lib/Sema/SemaAttr.cpp
+++ b/clang/lib/Sema/SemaAttr.cpp
@@ -193,6 +193,7 @@ void Sema::inferGslOwnerPointerAttribute(CXXRecordDecl *Record) {
"basic_string_view",
"reference_wrapper",
"regex_iterator",
+ "span",
};
if (!Record->getIdentifier())
``````````
</details>
https://github.com/llvm/llvm-project/pull/99622
More information about the cfe-commits
mailing list