зеркало из https://github.com/microsoft/clang-1.git
For consistency, change suffix from war_ to warn_ for some Microsoft warnings I introduced lately.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129986 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
2e510a0c0f
Коммит
cf320c6388
|
@ -385,7 +385,7 @@ def err_enum_template : Error<"enumeration cannot be a template">;
|
|||
|
||||
def err_missing_dependent_template_keyword : Error<
|
||||
"use 'template' keyword to treat '%0' as a dependent template name">;
|
||||
def war_missing_dependent_template_keyword : ExtWarn<
|
||||
def warn_missing_dependent_template_keyword : ExtWarn<
|
||||
"use 'template' keyword to treat '%0' as a dependent template name">;
|
||||
|
||||
def warn_static_inline_explicit_inst_ignored : Warning<
|
||||
|
|
|
@ -560,7 +560,7 @@ def err_incomplete_in_exception_spec : Error<
|
|||
"in exception specification">;
|
||||
def err_mismatched_exception_spec : Error<
|
||||
"exception specification in declaration does not match previous declaration">;
|
||||
def war_mismatched_exception_spec : ExtWarn<
|
||||
def warn_mismatched_exception_spec : ExtWarn<
|
||||
"exception specification in declaration does not match previous declaration">;
|
||||
def err_override_exception_spec : Error<
|
||||
"exception specification of overriding function is more lax than "
|
||||
|
@ -1332,7 +1332,7 @@ def err_param_default_argument : Error<
|
|||
"C does not support default arguments">;
|
||||
def err_param_default_argument_redefinition : Error<
|
||||
"redefinition of default argument">;
|
||||
def war_param_default_argument_redefinition : ExtWarn<
|
||||
def warn_param_default_argument_redefinition : ExtWarn<
|
||||
"redefinition of default argument">;
|
||||
def err_param_default_argument_missing : Error<
|
||||
"missing default argument on parameter">;
|
||||
|
@ -1975,7 +1975,7 @@ def note_typename_refers_here : Note<
|
|||
"referenced member %0 is declared here">;
|
||||
def err_typename_missing : Error<
|
||||
"missing 'typename' prior to dependent type name '%0%1'">;
|
||||
def war_typename_missing : ExtWarn<
|
||||
def warn_typename_missing : ExtWarn<
|
||||
"missing 'typename' prior to dependent type name '%0%1'">;
|
||||
def ext_typename_outside_of_template : ExtWarn<
|
||||
"'typename' occurs outside of a template">, InGroup<CXX0x>;
|
||||
|
|
|
@ -394,7 +394,7 @@ bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS,
|
|||
// before 'getAs' and treat this as a dependent template name.
|
||||
unsigned DiagID = diag::err_missing_dependent_template_keyword;
|
||||
if (getLang().Microsoft)
|
||||
DiagID = diag::war_missing_dependent_template_keyword;
|
||||
DiagID = diag::warn_missing_dependent_template_keyword;
|
||||
|
||||
Diag(Tok.getLocation(), DiagID)
|
||||
<< II.getName()
|
||||
|
|
|
@ -356,7 +356,7 @@ bool Sema::DiagnoseUnknownTypeName(const IdentifierInfo &II,
|
|||
else if (isDependentScopeSpecifier(*SS)) {
|
||||
unsigned DiagID = diag::err_typename_missing;
|
||||
if (getLangOptions().Microsoft && isMicrosoftMissingTypename(SS))
|
||||
DiagID = diag::war_typename_missing;
|
||||
DiagID = diag::warn_typename_missing;
|
||||
|
||||
Diag(SS->getRange().getBegin(), DiagID)
|
||||
<< (NestedNameSpecifier *)SS->getScopeRep() << II.getName()
|
||||
|
|
|
@ -305,7 +305,7 @@ bool Sema::MergeCXXFunctionDecl(FunctionDecl *New, FunctionDecl *Old) {
|
|||
OldParam->getUninstantiatedDefaultArg());
|
||||
else
|
||||
NewParam->setDefaultArg(OldParam->getInit());
|
||||
DiagDefaultParamID = diag::war_param_default_argument_redefinition;
|
||||
DiagDefaultParamID = diag::warn_param_default_argument_redefinition;
|
||||
Invalid = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
|
|||
bool MissingEmptyExceptionSpecification = false;
|
||||
unsigned DiagID = diag::err_mismatched_exception_spec;
|
||||
if (getLangOptions().Microsoft)
|
||||
DiagID = diag::war_mismatched_exception_spec;
|
||||
DiagID = diag::warn_mismatched_exception_spec;
|
||||
|
||||
if (!CheckEquivalentExceptionSpec(PDiag(DiagID),
|
||||
PDiag(diag::note_previous_declaration),
|
||||
|
@ -265,7 +265,7 @@ bool Sema::CheckEquivalentExceptionSpec(
|
|||
const FunctionProtoType *New, SourceLocation NewLoc) {
|
||||
unsigned DiagID = diag::err_mismatched_exception_spec;
|
||||
if (getLangOptions().Microsoft)
|
||||
DiagID = diag::war_mismatched_exception_spec;
|
||||
DiagID = diag::warn_mismatched_exception_spec;
|
||||
return CheckEquivalentExceptionSpec(
|
||||
PDiag(DiagID),
|
||||
PDiag(diag::note_previous_declaration),
|
||||
|
|
Загрузка…
Ссылка в новой задаче