commit | 9cfdae3144fc004cf203b05288f4dab49097ce7b | [log] [tgz] |
---|---|---|
author | Hans Wennborg <hans@hanshq.net> | Fri Jun 03 18:00:36 2011 +0000 |
committer | Hans Wennborg <hans@hanshq.net> | Fri Jun 03 18:00:36 2011 +0000 |
tree | 891eb9b9b606a1d0e0d85b46a9dc1c93faa7f123 | |
parent | 78e9c55c9acc85d82f4dd53a49c05310b4b56a1b [diff] |
Warn about missing parentheses for conditional operator. Warn in cases such as "x + someCondition ? 42 : 0;", where the condition expression looks arithmetic, and has a right-hand side that looks boolean. This (partly) addresses http://llvm.org/bugs/show_bug.cgi?id=9969 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132565 91177308-0d34-0410-b5e6-96231b3b80d8