[PATCH] D67960: [clangd] Move the existing heder-source-switch implemenation out of clangdServer.
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 25 01:20:01 PDT 2019
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks, lgtm!
================
Comment at: clang-tools-extra/clangd/HeaderSourceSwitch.cpp:21
+ llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS) {
+ // FIXME: move the file heuristic to HeaderSourceSwitch.h.
+ llvm::StringRef SourceExtensions[] = {".cpp", ".c", ".cc", ".cxx",
----------------
this patch is fixing it ?
================
Comment at: clang-tools-extra/clangd/HeaderSourceSwitch.h:15
+/// Given a header file, returns a best matching source file, and vice visa.
+/// It only uses the filename heuristics to do the inference.
----------------
nit: s/a best/the best
================
Comment at: clang-tools-extra/clangd/HeaderSourceSwitch.h:21
+
/// Given a header file, returns a best matching source file, and vice visa.
/// The heuristics incorporate with the AST and the index (if provided).
----------------
nit: s/a best/the best
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67960/new/
https://reviews.llvm.org/D67960
More information about the cfe-commits
mailing list