[clang] [Safe Buffers] Serialize unsafe_buffer_usage pragmas (PR #92031)

Ziqing Luo via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 14:55:09 PDT 2024


================
@@ -1551,6 +1567,58 @@ bool Preprocessor::isPPInSafeBufferOptOutRegion(SourceLocation &StartLoc) {
   return InSafeBufferOptOutRegion;
 }
 
+SmallVector<SourceLocation, 64>
+Preprocessor::serializeSafeBufferOptOutMap() const {
+  assert(!InSafeBufferOptOutRegion &&
----------------
ziqingluo-90 wrote:

Oh,  I'm sorry,  they are not warnings, they are errors: https://github.com/llvm/llvm-project/blob/c79690040acf5bb3d857558b0878db47f7f23dc3/clang/lib/Lex/Pragma.cpp#L1265

https://github.com/llvm/llvm-project/pull/92031


More information about the cfe-commits mailing list