[include-fixer plugin] Make the plugin emit proper fixits in case multiple errors...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 21 Nov 2016 15:28:50 +0000 (15:28 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 21 Nov 2016 15:28:50 +0000 (15:28 +0000)
commit87eb9667bf81a0cb713a5910585cf6043ae96b71
tree600345fa52c2c5f18f01422de1f77439f241ff9a
parent6704059a0d077e323648e8fc84735987d0350c87
[include-fixer plugin] Make the plugin emit proper fixits in case multiple errors are found.

The standalone tool only fixes the first one and we managed to bake that
assumption into the code :(

Also fix a crash when no header is found at all.

llvm-svn: 287544
clang-tools-extra/include-fixer/IncludeFixer.cpp
clang-tools-extra/include-fixer/IncludeFixer.h
clang-tools-extra/test/include-fixer/yamldb_plugin.cpp