Douglas Gregor
c2b97994ea
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>.
llvm-svn: 127776
2011-03-16 23:23:30 +00:00
Abramo Bagnara
dff1930bf7
Fixed source range for all DeclaratorDecl's.
...
llvm-svn: 127225
2011-03-08 08:55:46 +00:00
Abramo Bagnara
b3185b00c5
Fixed TypedefDecl and TemplateTypeParameter source range.
...
llvm-svn: 127119
2011-03-06 15:48:19 +00:00
Douglas Gregor
263803a6cd
Teach clang_getCursorReferenced() and friends about BlockDeclRefExprs.
...
llvm-svn: 117167
2010-10-22 22:24:08 +00:00
Douglas Gregor
d198047ef3
Add libclang visitation for C99 designated initializers.
...
llvm-svn: 113560
2010-09-09 23:28:23 +00:00
Douglas Gregor
0d4d88cf38
Add libclang visitation for __builtin_offsetof's components (fields
...
and array references).
llvm-svn: 113556
2010-09-09 23:10:46 +00:00
Ted Kremenek
cb13408f12
Unbreak test on windows.
...
llvm-svn: 100999
2010-04-11 22:25:18 +00:00
Ted Kremenek
33b9a42f41
Add CIndex support for blocks.
...
llvm-svn: 100989
2010-04-11 21:47:37 +00:00
Daniel Dunbar
6092d507f0
c-index-test: Unify and always print half-open extents.
...
llvm-svn: 96160
2010-02-14 08:32:51 +00:00
Daniel Dunbar
98c07e0e23
c-index-test: Unify syntax for printing extents. Yes, there were 4.
...
llvm-svn: 96158
2010-02-14 08:32:24 +00:00
Douglas Gregor
e391b01a3a
Add test case for ? : crasher
...
llvm-svn: 94429
2010-01-25 17:48:13 +00:00
Douglas Gregor
7210063126
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.
llvm-svn: 94424
2010-01-25 16:33:23 +00:00
Douglas Gregor
625a515120
Teach the cursor visitor to recurse into the type information of
...
explicit casts, sizeof, alignof, and compound literals.
llvm-svn: 94265
2010-01-23 00:40:08 +00:00