Author: Johannes Doerfert Date: 2020-02-14T17:22:40-06:00 New Revision: 859654c065583a320d3621d22a09cad89abfc3e9
URL: https://github.com/llvm/llvm-project/commit/859654c065583a320d3621d22a09cad89abfc3e9 DIFF: https://github.com/llvm/llvm-project/commit/859654c065583a320d3621d22a09cad89abfc3e9.diff LOG: [FIX] Add missing InGroup to warning introduced as part of D71830 Added: Modified: clang/include/clang/Basic/DiagnosticSemaKinds.td Removed: ################################################################################ diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index afaafb1daf8d..70897cb2816b 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -9912,7 +9912,8 @@ def err_omp_declare_variant_incompat_attributes : Error< "'#pragma omp declare variant' is not compatible with any target-specific attributes">; def warn_omp_declare_variant_score_not_constant : Warning<"score expressions in the OpenMP context selector need to be " - "constant; %0 is not and will be ignored">; + "constant; %0 is not and will be ignored">, + InGroup<SourceUsesOpenMP>; def err_omp_declare_variant_user_condition_not_constant : Error<"the user condition in the OpenMP context selector needs to be " "constant; %0 is not">; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits