[clang-tidy] Don't emit the whole spelling include header in include-cleaner diagnost...
authorHaojian Wu <hokein.wu@gmail.com>
Tue, 4 Jul 2023 11:16:05 +0000 (13:16 +0200)
committerHaojian Wu <hokein.wu@gmail.com>
Tue, 4 Jul 2023 12:32:27 +0000 (14:32 +0200)
commit2444fb96435ecae73211f3ced3d06e48719afe97
tree4aae6de4215b8085e7028bbf74e4ca379dafb774
parent7e48c2d85e6d7a306dedef900e74f861c5a66312
[clang-tidy] Don't emit the whole spelling include header in include-cleaner diagnostic message

To keep the message short and consistent with clangd, and the diagnostics are
attached to the #include line, users have enough context to understand the whole #include.

Differential Revision: https://reviews.llvm.org/D154434
clang-tools-extra/clang-tidy/misc/IncludeCleanerCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/include-cleaner.cpp