Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/Basic/DiagnosticSemaKinds.td
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,839 Lines • ▼ Show 20 Lines | def warn_cxx98_compat_initializer_list_init : Warning< | ||||
"initialization of initializer_list object is incompatible with C++98">, | "initialization of initializer_list object is incompatible with C++98">, | ||||
InGroup<CXX98Compat>, DefaultIgnore; | InGroup<CXX98Compat>, DefaultIgnore; | ||||
def warn_cxx98_compat_ctor_list_init : Warning< | def warn_cxx98_compat_ctor_list_init : Warning< | ||||
"constructor call from initializer list is incompatible with C++98">, | "constructor call from initializer list is incompatible with C++98">, | ||||
InGroup<CXX98Compat>, DefaultIgnore; | InGroup<CXX98Compat>, DefaultIgnore; | ||||
def err_illegal_initializer : Error< | def err_illegal_initializer : Error< | ||||
"illegal initializer (only variables can be initialized)">; | "illegal initializer (only variables can be initialized)">; | ||||
def err_illegal_initializer_type : Error<"illegal initializer type %0">; | def err_illegal_initializer_type : Error<"illegal initializer type %0">; | ||||
def err_init_list_void_nonempty : Error< | |||||
"initializer list for 'void' must be empty">; | |||||
aaronpuchert: Might also consider it a narrowing conversion. But I can't find the standard specifically… | |||||
def ext_init_list_type_narrowing : ExtWarn< | def ext_init_list_type_narrowing : ExtWarn< | ||||
"type %0 cannot be narrowed to %1 in initializer list">, | "type %0 cannot be narrowed to %1 in initializer list">, | ||||
InGroup<CXX11Narrowing>, DefaultError, SFINAEFailure; | InGroup<CXX11Narrowing>, DefaultError, SFINAEFailure; | ||||
def ext_init_list_variable_narrowing : ExtWarn< | def ext_init_list_variable_narrowing : ExtWarn< | ||||
"non-constant-expression cannot be narrowed from type %0 to %1 in " | "non-constant-expression cannot be narrowed from type %0 to %1 in " | ||||
"initializer list">, InGroup<CXX11Narrowing>, DefaultError, SFINAEFailure; | "initializer list">, InGroup<CXX11Narrowing>, DefaultError, SFINAEFailure; | ||||
def ext_init_list_constant_narrowing : ExtWarn< | def ext_init_list_constant_narrowing : ExtWarn< | ||||
"constant expression evaluates to %0 which cannot be narrowed to type %1">, | "constant expression evaluates to %0 which cannot be narrowed to type %1">, | ||||
▲ Show 20 Lines • Show All 5,566 Lines • Show Last 20 Lines |
Might also consider it a narrowing conversion. But I can't find the standard specifically calling it that.