[clangd] Early return for #include goto definition.
authorHaojian Wu <hokein@google.com>
Thu, 8 Mar 2018 16:28:12 +0000 (16:28 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 8 Mar 2018 16:28:12 +0000 (16:28 +0000)
commitc6a64d92398c900747667d31305dbddf78296ad3
tree50dc38eca53fbf247ab0ca5695066964e23ca8a4
parente755bf87a5b96fc788f25c08f984826a21585ca7
[clangd] Early return for #include goto definition.

Summary: This would save cost of walking over the AST, NFC.

Reviewers: ilya-biryukov

Subscribers: klimek, jkorous-apple, cfe-commits, ioeric

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

llvm-svn: 327023
clang-tools-extra/clangd/XRefs.cpp