[PATCH] D144884: [clang-format] Only add pragma continuation indentation for 'omp' clauses

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 2 11:08:29 PST 2023


MyDeveloperDay added a comment.

without this change what does this look like?

  EXPECT_EQ(
      "#pragma omp target       \\\n"
      "    reduction(+ : var)   \\\n"
      "    map(to : A[0 : N])   \\\n"
      "    map(to : B[0 : N])   \\\n"
      "    map(from : C[0 : N]) \\\n"
      "    firstprivate(i)      \\\n"
      "    firstprivate(j)      \\\n"
      "    firstprivate(k)",
      format(
          "#pragma omp target reduction(+:var) map(to:A[0:N]) map(to:B[0:N]) "
          "map(from:C[0:N]) firstprivate(i) firstprivate(j) firstprivate(k)",
          getLLVMStyleWithColumns(26)));


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144884



More information about the cfe-commits mailing list