[clang] [WIP][Safe Buffers] Serialize unsafe_buffer_usage pragmas (PR #92031)
Artem Dergachev via cfe-commits
cfe-commits at lists.llvm.org
Tue May 14 16:58:59 PDT 2024
================
@@ -1551,6 +1567,58 @@ bool Preprocessor::isPPInSafeBufferOptOutRegion(SourceLocation &StartLoc) {
return InSafeBufferOptOutRegion;
}
+SmallVector<SourceLocation, 64>
+Preprocessor::serializeSafeBufferOptOutMap() const {
+ assert(!InSafeBufferOptOutRegion &&
----------------
haoNoQ wrote:
We require the pragma to be closed before the end of TU right? And that's a hard error, not a warning?
https://github.com/llvm/llvm-project/pull/92031
More information about the cfe-commits
mailing list