From de4fe3538a963e58d68cf573e52005701bc4094c Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 23 Mar 2010 14:44:19 +0000 Subject: Ignore a more comprehensive set of gcc-special format attributes. llvm-svn: 99277 --- clang/lib/Sema/SemaDeclAttr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/Sema') diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp index 5a7a3c31fe8..a81ad768b8c 100644 --- a/clang/lib/Sema/SemaDeclAttr.cpp +++ b/clang/lib/Sema/SemaDeclAttr.cpp @@ -1137,7 +1137,8 @@ static FormatAttrKind getFormatAttrKind(llvm::StringRef Format) { Format == "zcmn_err") return SupportedFormat; - if (Format == "gcc_tdiag") + if (Format == "gcc_diag" || Format == "gcc_cdiag" || + Format == "gcc_cxxdiag" || Format == "gcc_tdiag") return IgnoredFormat; return InvalidFormat; -- cgit v1.2.3