include-cleaner: ParsedAST::getPragmaIncludes()
only contains information for preamble.
#1571
Labels
ParsedAST::getPragmaIncludes()
only contains information for preamble.
#1571
The
PragmaInclude
structure in clangd only contains the information for the preamble, this means the non-preamble IWYU pragmas are not respected in clangd, see the following example:One solution is to build a
PragmaInclude
when building the main AST and merge it with the one for preamble.The text was updated successfully, but these errors were encountered: