[PATCH] D52076: [CodeComplete] Add completions for filenames in #include directives.
Ilya Biryukov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 17 08:15:00 PDT 2018
ilya-biryukov added inline comments.
================
Comment at: lib/Lex/Lexer.cpp:2086
+ StringRef PartialPath(PathStart, CompletionPoint - PathStart);
+ auto Slash = PartialPath.rfind('/');
+ StringRef Dir =
----------------
This will probably break for backslash includes.
We should probably also handle backslashes here when `LangOpts.MSVCCompat` is true.
Repository:
rC Clang
https://reviews.llvm.org/D52076
More information about the cfe-commits
mailing list