If any Fix-Its attached to a diagnostic have invalid source locations
commit934af9c42b03228c9170ef6e13ba45d5f7356835
authorDouglas Gregor <doug.gregor@gmail.com>
Thu, 3 Feb 2011 23:41:12 +0000 (3 23:41 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Thu, 3 Feb 2011 23:41:12 +0000 (3 23:41 +0000)
treec1ef5ce5c613b5ed518ce0aac98ad300fd511cfe
parentcf6f79314fcb2d972444c9b7a6e964846ef9bc38
If any Fix-Its attached to a diagnostic have invalid source locations
or source locations that refer into a macro instantiation, delete all
of the Fix-Its on that diagnostic.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/DiagnosticIDs.cpp
test/Index/fix-its.c [new file with mode: 0644]
tools/c-index-test/c-index-test.c