diff options
author | Duncan Sands <baldrick@free.fr> | 2010-03-23 14:44:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-03-23 14:44:19 +0000 |
commit | bc52595e01323ca22d65c68aafd53a1acb8c1fb6 (patch) | |
tree | 37cbc5a6ab2fa2bc378724d337f6124580232d38 /lib/Sema/SemaDeclAttr.cpp | |
parent | 8e18c1b840882d26039503629d7e4ad4822f3bda (diff) |
Ignore a more comprehensive set of gcc-special format attributes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index 5a7a3c31fe..a81ad768b8 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/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; |