[PATCH] D107095: This patch adds `#pragma clang header_unsafe` to enable flagging macros as unsafe for header use. This is to allow macros that may have ABI implications to be avoided in headers that have ABI stability promises.

Chris Bieneman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 29 11:40:47 PDT 2021


beanz updated this revision to Diff 362840.
beanz added a comment.

Fixing an inadvertant change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107095/new/

https://reviews.llvm.org/D107095

Files:
  clang/docs/LanguageExtensions.rst
  clang/include/clang/Basic/DiagnosticGroups.td
  clang/include/clang/Basic/DiagnosticLexKinds.td
  clang/include/clang/Basic/IdentifierTable.h
  clang/include/clang/Lex/Preprocessor.h
  clang/lib/Lex/Pragma.cpp
  clang/lib/Lex/Preprocessor.cpp
  clang/test/Lexer/Inputs/unsafe-macro-2.h
  clang/test/Lexer/Inputs/unsafe-macro.h
  clang/test/Lexer/unsafe-macro.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107095.362840.patch
Type: text/x-patch
Size: 14090 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210729/7d72a81f/attachment.bin>


More information about the cfe-commits mailing list