[PATCH] D92753: [clang-format] Add IndentPragma style to eliminate common clang-format off scenario
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 8 00:29:10 PST 2020
MyDeveloperDay added inline comments.
================
Comment at: clang/unittests/Format/FormatTest.cpp:17676-17684
+ format("void foo() {\n"
+ "#if 1\n"
+ " #pragma omp simd\n"
+ " for (int k = 0; k < 10; k++) {\n"
+ " #pragma omp simd\n"
+ " for (int j = 0; j < 10; j++) {\n"
+ " }\n"
----------------
curdeius wrote:
> Last nit, I'd mess up spaces like suggested here.
This is `BeforeHash` not `AfterHash`, I think the test is correct (as it passes)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92753/new/
https://reviews.llvm.org/D92753
More information about the cfe-commits
mailing list