Removing some more unnecessary manual quotes from diagnostics.
llvm-svn: 198395
This commit is contained in:
parent
4d214b9e9c
commit
6d086d7dc1
@ -425,7 +425,7 @@ def ext_noreturn_main : ExtWarn<
|
||||
def note_main_remove_noreturn : Note<"remove '_Noreturn'">;
|
||||
def err_constexpr_main : Error<
|
||||
"'main' is not allowed to be declared constexpr">;
|
||||
def err_mainlike_template_decl : Error<"'%0' cannot be a template">;
|
||||
def err_mainlike_template_decl : Error<"%0 cannot be a template">;
|
||||
def err_main_returns_nonint : Error<"'main' must return 'int'">;
|
||||
def ext_main_returns_nonint : ExtWarn<"return type of 'main' is not 'int'">,
|
||||
InGroup<MainReturnType>;
|
||||
|
||||
@ -7849,7 +7849,7 @@ void Sema::CheckMain(FunctionDecl* FD, const DeclSpec& DS) {
|
||||
}
|
||||
|
||||
if (!FD->isInvalidDecl() && FD->getDescribedFunctionTemplate()) {
|
||||
Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD->getName();
|
||||
Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
|
||||
FD->setInvalidDecl();
|
||||
}
|
||||
}
|
||||
@ -7869,7 +7869,7 @@ void Sema::CheckMSVCRTEntryPoint(FunctionDecl *FD) {
|
||||
FD->setHasImplicitReturnZero(true);
|
||||
|
||||
if (!FD->isInvalidDecl() && FD->getDescribedFunctionTemplate()) {
|
||||
Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD->getName();
|
||||
Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
|
||||
FD->setInvalidDecl();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user