Anders Carlsson
7f84ed9287
Add CheckCallReturnType and start using it for regular call expressions. This will improve error messages. For
...
struct B;
B f();
void g() {
f();
}
We now get
t.cpp:6:3: error: calling 'f' with incomplete return type 'struct B'
f();
^~~
t.cpp:3:3: note: 'f' declared here
B f();
^
t.cpp:1:8: note: forward declaration of 'struct B'
struct B;
^
llvm-svn: 83692
2009-10-09 23:51:55 +00:00
Mike Stump
11289f4280
Remove tabs, and whitespace cleanups.
...
llvm-svn: 81346
2009-09-09 15:08:12 +00:00
Daniel Dunbar
a45cf5b6b0
Rename clang to clang-cc.
...
Tests and drivers updated, still need to shuffle dirs.
llvm-svn: 67602
2009-03-24 02:24:46 +00:00
Eli Friedman
3164fb15e2
Check that the return/argument types of calls are complete.
...
llvm-svn: 67485
2009-03-22 22:00:50 +00:00
Douglas Gregor
975e6d0ccd
Print the context of tag types as part of pretty-printing, e.g.,
...
struct N::M::foo
llvm-svn: 67284
2009-03-19 04:25:59 +00:00
Douglas Gregor
d45b93bdd6
Implement the GNU semantics for forward declarations of enum types in
...
C and C++. Fixes PR3688.
llvm-svn: 66282
2009-03-06 18:34:03 +00:00
Douglas Gregor
225b321a85
Fix <rdar://problem/6502934>. We were creating an ImplicitCastExpr
...
with reference type (it should be an lvalue with non-reference type).
llvm-svn: 62345
2009-01-16 19:38:23 +00:00
Douglas Gregor
b9d2380204
Add test of enumerator types
...
llvm-svn: 60940
2008-12-12 07:27:10 +00:00