manmanren added a comment. This commit seems to cause some regression for "-save-temps" as there is no new line before the pragma. See the below test case, -E will output int test();#pragma clang assume_nonnull It will fail the compilation on the preprocessed output with error: expected unqualified-id int test();#pragma clang assume_nonnull end
^ Thanks, Manman ------ cat test-pragma.mm // RUN: %clang -E -o - %s | FileCheck %s #define CF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin") #define CF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end") CF_ASSUME_NONNULL_BEGIN int test(); CF_ASSUME_NONNULL_END // CHECK-NOT: test();#pragma clang assume_nonnull Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D104601/new/ https://reviews.llvm.org/D104601 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits