Daniel Dunbar
6399208c14
Revert "Move macro definitions for IBOutlet and IBAction into the source
...
code. ...", this was a lit bug which should be fixed in r103652.
llvm-svn: 103654
2010-05-12 21:54:41 +00:00
Ted Kremenek
6cdc2c1bc8
Move macro definitions for IBOutlet and IBAction into the source code. This hopefully
...
unbreaks the test with lit+Windows.
llvm-svn: 103650
2010-05-12 21:44:56 +00:00
Daniel Dunbar
0856bf7b13
Yes another annotate-tokens tweak.
...
llvm-svn: 103615
2010-05-12 15:10:09 +00:00
Daniel Dunbar
c5f10c8d48
Increase test portability.
...
llvm-svn: 103614
2010-05-12 14:46:02 +00:00
Ted Kremenek
d58be13b68
Make test case invariant to macro definition location.
...
llvm-svn: 103587
2010-05-12 07:21:07 +00:00
Ted Kremenek
8278a32802
Re-apply r103581 with updated tests. It turns out we were computing bogus locations for
...
many things.
llvm-svn: 103583
2010-05-12 06:16:13 +00:00
Ted Kremenek
a53bead8db
Temporarily revert r103581 so I can fix the failing tests.
...
llvm-svn: 103582
2010-05-12 06:03:33 +00:00
Ted Kremenek
847941b1f4
Correctly check if a cursor is a declaration before returning its location/range in clang_getCursorLocation()/clang_getCursorExtent(). This fixes a horrible bug reported in
...
<rdar://problem/7961995> and <rdar://problem/7967123> where declarations with attributes
would get grossly annotated with the wrong tokens because the attribute would be interpreted
as if it was a Decl*.
llvm-svn: 103581
2010-05-12 06:00:25 +00:00
Ted Kremenek
5d61614eab
Adjust clang_annotateTokens() to correctly account for the TypeSourceInfo for DeclaratorDecls
...
when annotating tokens. Fixes <rdar://problem/7971430>.
llvm-svn: 103577
2010-05-12 05:29:33 +00:00
Ted Kremenek
680fe51e2c
Rework clang_annotateTokens() to annotate tokens with information that more closely matches
...
clang_getCursor(). Tokens are now annotated with the cursor (for the matching AST element)
that most closely encompasses that token.
llvm-svn: 103064
2010-05-05 00:55:23 +00:00
Douglas Gregor
abd9e9689a
Keep proper source location information for the type in an Objective-C
...
@encode expression.
llvm-svn: 101907
2010-04-20 15:39:42 +00:00
Douglas Gregor
791c08734a
Improve Objective-C token-annotation test
...
llvm-svn: 98078
2010-03-09 20:57:01 +00:00
Douglas Gregor
490075a7dd
Add an Objective-C test for token annotation
...
llvm-svn: 98056
2010-03-09 13:06:04 +00:00