1f9995e749e3f2dd442e83ab628b59f742fdc7f0 |
|
21-Oct-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
Improve the implementation of libclang's token-annotation logic for 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Index/annotate-tokens-include.c
|
50ba139cfa4be3440baab636eca4a0c23c909ef3 |
|
21-Oct-2010 |
Douglas Gregor <doug.gregor@gmail.com> |
Extend the preprocessing record and libclang with support for 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116952 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Index/annotate-tokens-include.c
|
89429ad868c2156bcf04ab440a03512db980072b |
|
06-May-2010 |
Ted Kremenek <kremenek@apple.com> |
Workaround a really serious caching bug in 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103143 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Index/annotate-tokens-include.c
|