[clangd][unittests][IncludeCleaner] Don't call findReferencedFiles() if the result...
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Fri, 12 Aug 2022 17:59:49 +0000 (20:59 +0300)
committerAleksandr Platonov <platonov.aleksandr@huawei.com>
Fri, 12 Aug 2022 18:00:11 +0000 (21:00 +0300)
commit42ee0d8c16f7052c3bc8434325868f48a501baf2
treed32447caa596dea1ef00a8b39f2402ccab826093
parentb559777c308dcdf40a5dc8dffd35867083a46c3c
[clangd][unittests][IncludeCleaner] Don't call findReferencedFiles() if the result is not used

IncludeCleaner.RecursiveInclusion and IncludeCleaner.IWYUPragmaExport tests don't check referenced files list, so we don't need to call findReferencedFiles() there.

Reviewed By: kbobyrev

Differential Revision: https://reviews.llvm.org/D131706
clang-tools-extra/clangd/unittests/IncludeCleanerTests.cpp