| commit | 7f84ed928721b49670024fd711ebbc276f038992 | [log] [tgz] |
|---|---|---|
| author | Anders Carlsson <andersca@mac.com> | Fri Oct 09 23:51:55 2009 +0000 |
| committer | Anders Carlsson <andersca@mac.com> | Fri Oct 09 23:51:55 2009 +0000 |
| tree | d9c29ffb53a7af9d7f23dababeae2caf10c93f9a | |
| parent | 918ec53c647f13885cf05d71845e325725d2d2f7 [diff] |
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