[clang] 42a7c42 - [clang] Add `std::span` to the default gsl pointer annotation list. (#99622)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 19 04:03:43 PDT 2024


Author: Haojian Wu
Date: 2024-07-19T13:03:40+02:00
New Revision: 42a7c424b65050c5522e7055ab1486b572d86b69

URL: https://github.com/llvm/llvm-project/commit/42a7c424b65050c5522e7055ab1486b572d86b69
DIFF: https://github.com/llvm/llvm-project/commit/42a7c424b65050c5522e7055ab1486b572d86b69.diff

LOG: [clang] Add `std::span` to the default gsl pointer annotation list. (#99622)

Added: 
    

Modified: 
    clang/lib/Sema/SemaAttr.cpp

Removed: 
    


################################################################################
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())


        


More information about the cfe-commits mailing list