================
@@ -0,0 +1,127 @@
+// Check that code completion inside OpenMP variable-list clauses terminates.
+// https://github.com/llvm/llvm-project/issues/233392
+
+// RUN: split-file %s %t
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/reduction.cpp:3:39 %t/reduction.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/reduction.cpp:3:40 %t/reduction.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/reduction.cpp:3:41 %t/reduction.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/logical_reduction.cpp:3:41 %t/logical_reduction.cpp | 
FileCheck -check-prefix=CHECK-X %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/empty_reduction.cpp:3:41 %t/empty_reduction.cpp | 
FileCheck -check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/private.cpp:3:34 %t/private.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/private_variable.cpp:3:34 %t/private_variable.cpp | 
FileCheck -check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/shared.cpp:3:33 %t/shared.cpp | FileCheck 
-check-prefix=CHECK-X %s
+// RUN: %clang_cc1 -fsyntax-only -x c -fopenmp 
-code-completion-at=%t/reduction.c:3:40 %t/reduction.c | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp-simd 
-code-completion-at=%t/simd.cpp:3:32 %t/simd.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp-simd 
-code-completion-at=%t/reduction.cpp:3:40 %t/reduction.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp -code-completion-at=%t/if.cpp:3:29 
%t/if.cpp | FileCheck -check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/num_threads.cpp:3:38 %t/num_threads.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/schedule.cpp:3:35 %t/schedule.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -fopenmp 
-code-completion-at=%t/reduction.cpp:4:32 %t/reduction.cpp | FileCheck 
-check-prefix=CHECK-S %s
+// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%t/no_openmp.cpp:3:40 
%t/no_openmp.cpp
----------------
zahiraam wrote:

The if, schedule, loop-body and no -fopenmp cases (lines 16, 18, 19, 20) don't 
hang without this patch, so I think they can be removed.

https://github.com/llvm/llvm-project/pull/234586
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to