From 48ecc7affef226b2bac1e08bdfdc059306a1734c Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 3 Jun 2009 13:29:08 +0000 Subject: Import Clang, at r72770. --- lib/Sema/Sema.cpp | 2 +- lib/Sema/SemaType.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Sema') diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp index 1212d07..e3cea5b 100644 --- a/lib/Sema/Sema.cpp +++ b/lib/Sema/Sema.cpp @@ -60,7 +60,7 @@ static void ConvertArgToStringFn(Diagnostic::ArgumentKind Kind, intptr_t Val, // Not va_list. Ty.getUnqualifiedType() != Context.getBuiltinVaListType()) { S = "'"+S+"' (aka '"; - S += DesugaredTy.getAsString(); + S += DesugaredTy.getAsString(Context.PrintingPolicy); S += "')"; Output.append(S.begin(), S.end()); return; diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 81ac211..cd19d97 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -107,7 +107,7 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS, if (DS.isEmpty()) { if (DeclLoc.isInvalid()) DeclLoc = DS.getSourceRange().getBegin(); - Diag(DeclLoc, diag::warn_missing_declspec) + Diag(DeclLoc, diag::ext_missing_declspec) << DS.getSourceRange() << CodeModificationHint::CreateInsertion(DS.getSourceRange().getBegin(), "int"); @@ -125,7 +125,7 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS, Diag(DeclLoc, diag::err_missing_type_specifier) << DS.getSourceRange(); else - Diag(DeclLoc, diag::warn_missing_type_specifier) + Diag(DeclLoc, diag::ext_missing_type_specifier) << DS.getSourceRange(); // FIXME: If we could guarantee that the result would be well-formed, it -- cgit v1.1