Douglas Gregor
04a9eb3f0d
When libclang visits a translation unit via clang_visitChildren(),
...
walk the preprocessing record *before* walking the declarations, so
they we pretend that we actually respect the phases of translation.
We still walk the preprocessing record after the declarations when
performing token annotation or finding the cursor at a location, since
those routines depend on those semantics.
Fixes <rdar://problem/9137195>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127776 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-16 23:23:30 +00:00
Abramo Bagnara
ff676cb48f
Fixed source range for all DeclaratorDecl's.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127225 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-08 08:55:46 +00:00
Abramo Bagnara
344577e6b5
Fixed TypedefDecl and TemplateTypeParameter source range.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127119 91177308-0d34-0410-b5e6-96231b3b80d8
2011-03-06 15:48:19 +00:00
Douglas Gregor
38f28c1189
Teach clang_getCursorReferenced() and friends about BlockDeclRefExprs.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117167 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-22 22:24:08 +00:00
Douglas Gregor
fa2e26f621
Add libclang visitation for C99 designated initializers.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113560 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-09 23:28:23 +00:00
Douglas Gregor
8ccef2d032
Add libclang visitation for __builtin_offsetof's components (fields
...
and array references).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113556 91177308-0d34-0410-b5e6-96231b3b80d8
2010-09-09 23:10:46 +00:00
Ted Kremenek
21b7323cd0
Unbreak test on windows.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100999 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-11 22:25:18 +00:00
Ted Kremenek
1ee6cad59f
Add CIndex support for blocks.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100989 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-11 21:47:37 +00:00
Daniel Dunbar
8f0bf81c0f
c-index-test: Unify and always print half-open extents.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96160 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-14 08:32:51 +00:00
Daniel Dunbar
51b058cb1e
c-index-test: Unify syntax for printing extents. Yes, there were 4.
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96158 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-14 08:32:24 +00:00
Douglas Gregor
3512107be5
Add test case for ? : crasher
...
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94429 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-25 17:48:13 +00:00
Douglas Gregor
b988f9cde9
Move the type specifier location for elaborated-type-specifiers from
...
the tag kind (union, struct, class, enum) over to the name of the tag,
if there is a name, since most clients want to point at the name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94424 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-25 16:33:23 +00:00
Douglas Gregor
336fd81e04
Teach the cursor visitor to recurse into the type information of
...
explicit casts, sizeof, alignof, and compound literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94265 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-23 00:40:08 +00:00