[include-cleaner] Bailout on invalid code for the command-line tool
authorHaojian Wu <hokein.wu@gmail.com>
Mon, 19 Jun 2023 12:57:09 +0000 (14:57 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 20 Jun 2023 07:07:27 +0000 (09:07 +0200)
commitab32cc6c02f539bc87e71fefc9670f28a7fc7f56
treea62af98e51f6ec7203d350c935e26c3346cfa8cd
parent18ec2030844273ea055494bf93c8b8e8d172bec0
[include-cleaner] Bailout on invalid code for the command-line tool

The binary tool only works on working source code, if the source code is
not compilable, don't perform any analysis and edits.

Differential Revision: https://reviews.llvm.org/D153271
clang-tools-extra/include-cleaner/tool/IncludeCleaner.cpp