jhuber6 added a comment.

I would prefer that this doesn't get reverted, see the summary for the awful 
results for OpenMP without this patch. A potential solution would be to parse 
the next token and only add the indent if it's `omp`.



================
Comment at: clang/unittests/Format/FormatTest.cpp:5175
   verifyFormat("#pragma omp threadprivate( \\\n"
-               "    y)), // expected-warning",
+               "        y)), // expected-warning",
                getLLVMStyleWithColumns(28));
----------------
owenpan wrote:
> Why was this test case changed? It seemed to be related to the regression 
> mentioned in D136100#3988574.
It's definitely related, we want some indentation for successive OpenMP clauses 
pushed to a new line, see below.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D136100

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to