commit | 8adf837adc65b55a3f74643c02c1ee077dc26f06 | [log] [tgz] |
---|---|---|
author | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Sep 20 00:27:40 2013 +0000 |
committer | Richard Smith <richard-llvm@metafoo.co.uk> | Fri Sep 20 00:27:40 2013 +0000 |
tree | 0238bbdbcc86036f3d277175ed08fd79d528a9c3 | |
parent | 152b7d82252b57763f4222fb4e3d0a4ed9937e76 [diff] |
PR17290: Use 'false' macro in fix-it hint for initializing a variable of type _Bool in C, if the macro is defined. Also teach FixItUtils to look at whether the macro was defined at the source location for which it is creating a fixit, rather than looking at whether it's defined *now*. This is especially relevant for analysis-based warnings which are delayed until end of TU. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191057 91177308-0d34-0410-b5e6-96231b3b80d8