[clangd] Catch an unchecked "Expected<T>" in HeaderSourceSwitch.

Summary: Also fixes a potential user-after-scope issue of "Path".

Reviewers: kadircet

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D68564

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@373897 91177308-0d34-0410-b5e6-96231b3b80d8
4 files changed