[PATCH] D104601: [Preprocessor] Implement -fminimize-whitespace.
Manman Ren via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 2 21:27:16 PDT 2021
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
More information about the cfe-commits
mailing list