summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/cindex-test-inclusions.c
Commit message (Collapse)AuthorAgeFilesLines
* Show inclusions from a preamble in clang_getInclusions.Erik Verbruggen2016-01-061-0/+11
| | | | | | | | | | | | | | | | 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 llvm-svn: 256939
* Implement 'clang_getInclusions()' in CIndex. This API allows clients to ↵Ted Kremenek2010-01-261-0/+13
walk the set of files included in a translation unit via the C API. llvm-svn: 94575
OpenPOWER on IntegriCloud