]> granicus.if.org Git - clang/commit
Only allow streaming exactly type 'bool' to a DiagnosticBuilder, not anything
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Mar 2014 23:36:42 +0000 (23:36 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 12 Mar 2014 23:36:42 +0000 (23:36 +0000)
commitc05006fda51658dc0a2fd551aeceaf90605bfc41
tree0724df77e0b9969bfa911b0bbb41533e4ccf0991
parent9127425f846034f61801c8489e9f170569f82f2a
Only allow streaming exactly type 'bool' to a DiagnosticBuilder, not anything
that implicitly converts to 'bool' (such as pointers, and the first operand of
?:). Clean up issues found by this. Patch by Stephan Tolksdorf!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203735 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
lib/Driver/Driver.cpp
lib/Lex/ModuleMap.cpp
lib/Sema/SemaDeclCXX.cpp