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()) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits