[clangd] Fix tests for implicit C function declaration
authorAleksandr Platonov <platonov.aleksandr@huawei.com>
Thu, 1 Sep 2022 18:51:25 +0000 (21:51 +0300)
committerAleksandr Platonov <platonov.aleksandr@huawei.com>
Thu, 1 Sep 2022 20:46:20 +0000 (23:46 +0300)
commitcc4b86cfc01c3a923324c4bf1485ae9c8021e0a1
tree6ec04ec6747ea7b521ed57af50fca983bece55bd
parent06c46344838858623e17e64dde57a2edce05bbac
[clangd] Fix tests for implicit C function declaration

clangd code fixes at D122983 were not right.
We need to check that clangd provides IncludeFixer fixits for implicit function declaration even if this is not an error (e.g. implicit function declaration in C89).

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D133043
clang-tools-extra/clangd/ParsedAST.cpp
clang-tools-extra/clangd/unittests/DiagnosticsTests.cpp