[PATCH] D113555: [clangd] Mark macros from preamble for code completion
Utkarsh Saxena via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 10 09:38:21 PST 2021
usaxena95 accepted this revision.
usaxena95 added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:567
S.CanonicalDeclaration = R.Location;
+ if (!HeaderFileURIs->getIncludeHeader(SM.getMainFileID()).empty()) {
+ S.Flags |= Symbol::IndexedForCodeCompletion;
----------------
Please add a comment about this (maybe similar to the parch description)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113555/new/
https://reviews.llvm.org/D113555
More information about the cfe-commits
mailing list