summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/bool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Split the deprecated increment bool warning into a sub-group of -WdeprecatedRichard Trieu2013-08-081-0/+2
| | | | | | so that it can be toggled independently of other deprecated warnings. llvm-svn: 187958
* Improve some of the conversion warnings to fire on conversion to bool.David Blaikie2012-05-151-1/+1
| | | | | | | | | | | Moves the bool bail-out down a little in SemaChecking - so now -Wnull-conversion and -Wliteral-conversion can fire when the target type is bool. Also improve the wording/details in the -Wliteral-conversion warning to match the -Wconstant-conversion. llvm-svn: 156826
* Add fixit notes for -Wconstant-logical-operand.Matt Beaumont-Gay2011-08-151-2/+5
| | | | llvm-svn: 137620
* Add a warning to catch a bug recently caught by code review, like this:Chris Lattner2010-07-131-2/+2
| | | | | | | | | | | t2.c:2:12: warning: use of logical && with constant operand; switch to bitwise & or remove constant [-Wlogical-bitwise-confusion] return x && 4; ^ ~ wording improvement suggestions are welcome. llvm-svn: 108260
* Initialization improvements: addition of string initialization and a fewEli Friedman2009-12-191-1/+1
| | | | | | | | small bug fixes in SemaInit, switch over SemaDecl to use it more often, and change a bunch of diagnostics which are different with the new initialization code. llvm-svn: 91767
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* The result type of logical || and && is bool in C++. Fixes PR5206.Anders Carlsson2009-10-161-0/+12
| | | | llvm-svn: 84231
* Create a new PrintingPolicy class, which we pass down through the ASTDouglas Gregor2009-05-291-0/+2
| | | | | | | | | printing logic to help customize the output. For now, we use this rather than a special flag to suppress the "struct" when printing "struct X" and to print the Boolean type as "bool" in C++ but "_Bool" in C. llvm-svn: 72590
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-1/+1
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Implement checks for bool in increment and decrement.Sebastian Redl2008-12-201-0/+9
| | | | llvm-svn: 61275
* treat bool literals as constatnt expressions.Anders Carlsson2008-08-231-0/+7
llvm-svn: 55255
OpenPOWER on IntegriCloud