]> granicus.if.org Git - clang/commit
Don't try to emit nullability fix-its within/around macros.
authorJordan Rose <jordan_rose@apple.com>
Mon, 19 Dec 2016 22:35:24 +0000 (22:35 +0000)
committerJordan Rose <jordan_rose@apple.com>
Mon, 19 Dec 2016 22:35:24 +0000 (22:35 +0000)
commit64caf82375f4a7988a0b23fa54fc527944356d3c
treed153d94bafbac08ad95de95efb388b512930a062
parent3efe802b4e854017f1e120006168bcd5056254dc
Don't try to emit nullability fix-its within/around macros.

The newly-added notes from r290132 are too noisy even when the fix-it
is valid. For the existing warning from r286521, it's probably the
right decision 95% of the time to put the change outside the macro if
the array is outside the macro and inside otherwise, but I don't want
to overthink it right now.

Caught by the ASan bot!

More rdar://problem/29524992

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290141 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/FixIt/Inputs/nullability.h
test/FixIt/nullability.mm