diff options
author | Erik Pilkington <erik.pilkington@gmail.com> | 2019-10-04 19:20:27 +0000 |
---|---|---|
committer | Erik Pilkington <erik.pilkington@gmail.com> | 2019-10-04 19:20:27 +0000 |
commit | f7766b1ed41aa07b6a784d0ebf074c63ada1940d (patch) | |
tree | bea62cd1815b9cbfa5a5ea9325bded72e243f011 /clang/lib/AST/FormatString.cpp | |
parent | 13c4254714f0e925d5f7b0880ef6c9f05d53990c (diff) | |
download | bcm5719-llvm-f7766b1ed41aa07b6a784d0ebf074c63ada1940d.tar.gz bcm5719-llvm-f7766b1ed41aa07b6a784d0ebf074c63ada1940d.zip |
[Sema] Split out -Wformat-type-confusion from -Wformat-pedantic
The warnings now in -Wformat-type-confusion don't align with how we interpret
'pedantic' in clang, and don't belong in -pedantic.
Differential revision: https://reviews.llvm.org/D67775
llvm-svn: 373774
Diffstat (limited to 'clang/lib/AST/FormatString.cpp')
-rw-r--r-- | clang/lib/AST/FormatString.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/FormatString.cpp b/clang/lib/AST/FormatString.cpp index 3c96c80e4cc..fcc0b3b11e2 100644 --- a/clang/lib/AST/FormatString.cpp +++ b/clang/lib/AST/FormatString.cpp @@ -389,7 +389,7 @@ ArgType::matchesType(ASTContext &C, QualType argTy) const { case BuiltinType::UChar: case BuiltinType::Bool: if (T == C.UnsignedShortTy || T == C.ShortTy) - return NoMatchPedantic; + return NoMatchTypeConfusion; return T == C.UnsignedCharTy || T == C.SignedCharTy ? Match : NoMatch; case BuiltinType::Short: |