Add a warning flag for ext_embedded_directive. gcc considers this undefined
behaviour to be an error, so it's useful to be able to make it an error in clang too. llvm-svn: 146755
This commit is contained in:
parent
1c419ff50d
commit
300237f00c
|
@ -203,7 +203,8 @@ def warn_cxx98_compat_variadic_macro : Warning<
|
|||
def ext_named_variadic_macro : Extension<
|
||||
"named variadic macros are a GNU extension">, InGroup<VariadicMacros>;
|
||||
def ext_embedded_directive : Extension<
|
||||
"embedding a directive within macro arguments is not portable">;
|
||||
"embedding a directive within macro arguments is not portable">,
|
||||
InGroup<DiagGroup<"embedded-directive">>;
|
||||
def ext_missing_varargs_arg : Extension<
|
||||
"varargs argument missing, but tolerated as an extension">;
|
||||
def ext_empty_fnmacro_arg : Extension<
|
||||
|
|
|
@ -17,7 +17,7 @@ This test serves two purposes:
|
|||
|
||||
The list of warnings below should NEVER grow. It should gradually shrink to 0.
|
||||
|
||||
CHECK: Warnings without flags (271):
|
||||
CHECK: Warnings without flags (270):
|
||||
CHECK-NEXT: ext_anon_param_requires_type_specifier
|
||||
CHECK-NEXT: ext_anonymous_struct_union_qualified
|
||||
CHECK-NEXT: ext_array_init_copy
|
||||
|
@ -28,7 +28,6 @@ CHECK-NEXT: ext_designated_init
|
|||
CHECK-NEXT: ext_designated_init_cxx
|
||||
CHECK-NEXT: ext_duplicate_declspec
|
||||
CHECK-NEXT: ext_ellipsis_exception_spec
|
||||
CHECK-NEXT: ext_embedded_directive
|
||||
CHECK-NEXT: ext_empty_fnmacro_arg
|
||||
CHECK-NEXT: ext_empty_source_file
|
||||
CHECK-NEXT: ext_enum_friend
|
||||
|
|
Loading…
Reference in New Issue