Skip to content

Commit f6554f9

Browse files
committed
do not modify warning-flags.c
1 parent bd22435 commit f6554f9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

clang/include/clang/Basic/DiagnosticParseKinds.td

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,10 @@ def err_requires_expr_in_simple_requirement : Error<
887887
"requires expression in requirement body; did "
888888
"you intend to place it in a nested requirement? (add another 'requires' "
889889
"before the expression)">;
890-
def warn_missing_template_arg_list_after_template_kw : Warning<
890+
def missing_template_arg_list_after_template_kw : Extension<
891891
"a template argument list is expected after a name prefixed by the template "
892-
"keyword">, InGroup<Pedantic>, DefaultError;
892+
"keyword">, InGroup<DiagGroup<"missing-template-arg-list-after-template-kw">>,
893+
DefaultError;
893894

894895
def err_missing_dependent_template_keyword : Error<
895896
"use 'template' keyword to treat '%0' as a dependent template name">;

clang/lib/Parse/ParseExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3042,7 +3042,7 @@ bool Parser::ParseUnqualifiedId(CXXScopeSpec &SS, ParsedType ObjectType,
30423042
if ((TNK == TNK_Function_template || TNK == TNK_Dependent_template_name ||
30433043
TNK == TNK_Var_template) &&
30443044
!Tok.is(tok::less))
3045-
Diag(IdLoc, diag::warn_missing_template_arg_list_after_template_kw);
3045+
Diag(IdLoc, diag::missing_template_arg_list_after_template_kw);
30463046
}
30473047
return false;
30483048
}

clang/test/Misc/warning-flags.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ CHECK-NEXT: warn_weak_import
8989

9090
The list of warnings in -Wpedantic should NEVER grow.
9191

92-
CHECK: Number in -Wpedantic (not covered by other -W flags): 27
92+
CHECK: Number in -Wpedantic (not covered by other -W flags): 26

0 commit comments

Comments
 (0)