[PATCH] D37861: preserving #pragma clang assume_nonnull in preprocessed output

Zbigniew Sarbinowski via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 12:49:12 PDT 2017


zibi created this revision.
Herald added subscribers: kbarton, nemanjai.

When #pragma clang assume_nonnull begin || end is present in the source it is completely gone from pre-processed output when compiled with -E or -P. This patch make sure the pragma is preserved. I included 1 test case which checks the presence of this pragma in pre-processor output.


https://reviews.llvm.org/D37861

Files:
  include/clang/Lex/PPCallbacks.h
  lib/Frontend/PrintPreprocessedOutput.cpp
  lib/Lex/Pragma.cpp
  test/Preprocessor/pragma_assume_nonnull.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37861.115252.patch
Type: text/x-patch
Size: 4762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170914/0a6060ef/attachment.bin>


More information about the cfe-commits mailing list