[clangd] Invalid AST in header when cpp file uses /TP

Patch has been submitted.
https://reviews.llvm.org/D51321