HomePhabricator

Show inclusions from a preamble in clang_getInclusions.

Description

Show inclusions from a preamble in clang_getInclusions.

When reparsing a translation unit with preamble generation turned on,
no includes are found. This is due to the fact that all SLocs from
AST/PCH files are skipped as they are 'loaded', and inclusions from a
preamble are also 'loaded'. So, in case a file has a preamble, it first
needs to process those loaded inclusions, and then check for any local
inclusions. This latter one is for any includes that are not part of the
preamble, like includes half-way through a file.

This fixes PR24748.

Differential Revision: http://reviews.llvm.org/D14329

Details

Committed
erikjvJan 6 2016, 7:12 AM
Differential Revision
D14329: Show inclusions from a preamble in clang_getInclusions.
Branches
Unknown
Tags
Unknown