HomePhabricator

[clangd] Mark macros from preamble for code completion

Authored by kadircet on Wed, Nov 10, 3:10 AM.

Description

[clangd] Mark macros from preamble for code completion

If the main file is a header, mark the marcos defined in its preamble
section as code-completion ready.

Fixes https://github.com/clangd/clangd/issues/921.

Differential Revision: https://reviews.llvm.org/D113555