[PATCH] D140191: [CodeComplete] Offer completions for headers with extension .hxx in include directives
Kadir Cetinkaya via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 16 02:12:32 PST 2022
kadircet accepted this revision.
kadircet added a comment.
This revision is now accepted and ready to land.
thanks!
================
Comment at: clang/lib/Sema/SemaCodeComplete.cpp:10020
// Only files that really look like headers. (Except in special dirs).
// Header extensions from Types.def, which we can't depend on here.
const bool IsHeader = Filename.endswith_insensitive(".h") ||
----------------
this isn't actually the extensions from `Types.def` (it only has `h` and `hh`). you mind rewording it as `This has some extra common file extensions that aren't part of Types.def`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140191/new/
https://reviews.llvm.org/D140191
More information about the cfe-commits
mailing list