summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/annotate-tokens-include.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve the implementation of libclang's token-annotation logic forDouglas Gregor2010-10-211-2/+2
| | | | | | | | | | | | | | | | | entities in the preprocessing record. Previously, we would only end up getting the first token of a preprocessing record annotated correctly. For example, given #include "foo.h" we would only get the '#' annotated as an inclusion directive; the 'include' and '"foo.h"' tokens would be given the general 'processing directive' annotation. Now, we get proper annotations for entities in the preprocessing record. llvm-svn: 117001
* Extend the preprocessing record and libclang with support forDouglas Gregor2010-10-201-0/+1
| | | | | | | | | inclusion directives, keeping track of every #include, #import, etc. in the translation unit. We keep track of the source location and kind of the inclusion, how the file name was spelled, and the underlying file to which the inclusion resolved. llvm-svn: 116952
* Workaround a really serious caching bug in ↵Ted Kremenek2010-05-061-0/+6
SourceManager::isBeforeInTranslationUnit() where the method will sometimes return different results for the same input SourceLocations. I haven't unraveled this method completely yet, so this truly is a workaround until a better fix comes along. llvm-svn: 103143
OpenPOWER on IntegriCloud