summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/warn-int-in-bool-context.c
Commit message (Collapse)AuthorAgeFilesLines
* [Diagnostics] Handle tautological left shifts in boolean context David Bolvansky2019-09-241-7/+12
| | | | llvm-svn: 372749
* [Diagnostics] Do not diagnose unsigned shifts in boolean context ↵David Bolvansky2019-09-241-4/+16
| | | | | | | | (-Wint-in-bool-context) I was looking at old GCC's patch. Current "trunk" version avoids warning for unsigned case, GCC warns only for signed shifts. llvm-svn: 372708
* [Diagnostics] Warn for enum constants in bool context ↵David Bolvansky2019-09-231-1/+27
| | | | | | | | (-Wint-in-bool-context; GCC compatibility) Extracted from D63082. llvm-svn: 372664
* [Diagnostics] Warn if '<<' in bool context with -Wint-in-bool-context (GCC ↵David Bolvansky2019-09-231-0/+31
compatibility) Extracted from D63082, addressed review comments related to a warning message. llvm-svn: 372612
OpenPOWER on IntegriCloud