[all-commits] [llvm/llvm-project] b221c9: [clangd] Replace getLangOpts().isHeaderFile usage ...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Fri Nov 15 07:28:58 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b221c9d09dd12bde75f00f3541c8f344925d4d59
https://github.com/llvm/llvm-project/commit/b221c9d09dd12bde75f00f3541c8f344925d4d59
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2019-11-15 (Fri, 15 Nov 2019)
Changed paths:
M clang-tools-extra/clangd/HeaderSourceSwitch.cpp
M clang-tools-extra/clangd/index/SymbolCollector.cpp
M clang-tools-extra/clangd/refactor/Rename.cpp
M clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp
M clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp
Log Message:
-----------
[clangd] Replace getLangOpts().isHeaderFile usage with isHeaderFile helper.
Summary:
The helper is more correct to detect header file, this would fix our
issues caused by false positive before.
Reviewers: sammccall
Reviewed By: sammccall
Subscribers: merge_guards_bot, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70299
More information about the All-commits
mailing list