Skip to content

Commit 34fe6da

Browse files
authored
[clang][OpenMP] Place some common code in functions (#96811)
There are chunks of code repeated in a number of functions. This patch moves some of that code into individual functions.
1 parent e035ef0 commit 34fe6da

File tree

2 files changed

+167
-905
lines changed

2 files changed

+167
-905
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11180,16 +11180,12 @@ def err_omp_several_directives_in_region : Error<
1118011180
def note_omp_previous_directive : Note<
1118111181
"previous '%0' directive used here">;
1118211182
def err_omp_sections_not_compound_stmt : Error<
11183-
"the statement for '#pragma omp sections' must be a compound statement">;
11184-
def err_omp_parallel_sections_not_compound_stmt : Error<
11185-
"the statement for '#pragma omp parallel sections' must be a compound statement">;
11183+
"the statement for '#pragma omp %0' must be a compound statement">;
1118611184
def err_omp_orphaned_section_directive : Error<
1118711185
"%select{orphaned 'omp section' directives are prohibited, it|'omp section' directive}0"
1118811186
" must be closely nested to a sections region%select{|, not a %1 region}0">;
1118911187
def err_omp_sections_substmt_not_section : Error<
11190-
"statement in 'omp sections' directive must be enclosed into a section region">;
11191-
def err_omp_parallel_sections_substmt_not_section : Error<
11192-
"statement in 'omp parallel sections' directive must be enclosed into a section region">;
11188+
"statement in 'omp %0' directive must be enclosed into a section region">;
1119311189
def err_omp_parallel_reduction_in_task_firstprivate : Error<
1119411190
"argument of a reduction clause of a %0 construct must not appear in a firstprivate clause on a task construct">;
1119511191
def err_omp_atomic_read_not_expression_statement : Error<

0 commit comments

Comments
 (0)