[clang] [llvm] [Clang][OpenMP] Implement Loop splitting `#pragma omp split` directive (PR #183261)
Michael Kruse via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 05:55:25 PDT 2026
================
@@ -23054,6 +23054,11 @@ TEST_F(FormatTest, UnderstandsPragmaOmpTarget) {
getLLVMStyleWithColumns(26));
}
+TEST_F(FormatTest, UnderstandsPragmaOmpSplit) {
+ verifyFormat("#pragma omp split counts(2, 3)");
+ verifyFormat("#pragma omp split counts(2, omp_fill)");
+}
+
----------------
Meinersbur wrote:
You probably don't need to test formatting; we are not going to add tests for every single directive here, but only ones where
1. clang-format has special handling for, or
2. there have been regressions in the past
https://github.com/llvm/llvm-project/pull/183261
More information about the cfe-commits
mailing list