[clangd][NFC] Don't query the index if the rename symbol is function
authorHaojian Wu <hokein.wu@gmail.com>
Thu, 27 Feb 2020 13:46:01 +0000 (14:46 +0100)
committerHaojian Wu <hokein.wu@gmail.com>
Thu, 27 Feb 2020 14:04:51 +0000 (15:04 +0100)
commitaa324c5441f229bd1ff07407affeab95740328fe
tree358ca2520faf211c95a339990050db13e7053ab1
parent6bdd63dc28208a597542b0c6bc41093f32417804
[clangd][NFC] Don't query the index if the rename symbol is function
local.

This would save an unnecessary index query when renaming a function
local symbol in cross-file rename mode.
clang-tools-extra/clangd/refactor/Rename.cpp