From 1da282ae2de6ce3fc1750147d5d8ad0c09171d22 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 2 Jan 2014 23:15:58 +0000 Subject: Removing some more unnecessary manual quotes from attribute diagnostics. Updated the associated testcase because QualType pretty printing was an improvement. llvm-svn: 198372 --- clang/lib/Sema/SemaDeclAttr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Sema') diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 083a66e2559..ff913462402 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -430,7 +430,7 @@ static void checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr, // Warn if could not get record type for this argument. if (!RT) { S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_class) - << Attr.getName() << Ty.getAsString(); + << Attr.getName() << Ty; return; } @@ -456,7 +456,7 @@ static void checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr, } S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_lockable) - << Attr.getName() << Ty.getAsString(); + << Attr.getName() << Ty; } /// \brief Thread Safety Analysis: Checks that all attribute arguments, starting -- cgit v1.2.3