diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-25 02:58:17 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-25 02:58:17 +0000 |
commit | 75fdaa465f4ccbe129ad69cdc8de34587066db13 (patch) | |
tree | fd18ba15744d66e01285fba3ef36583adbe50b73 /clang/lib/Driver/OptTable.cpp | |
parent | 3cfc2e214a20998e0e4f81ec70e75fe9c0fb9e77 (diff) | |
download | llvm-75fdaa465f4ccbe129ad69cdc8de34587066db13.zip llvm-75fdaa465f4ccbe129ad69cdc8de34587066db13.tar.gz llvm-75fdaa465f4ccbe129ad69cdc8de34587066db13.tar.bz2 |
Improve handling of base initializers. We now parse initializers in out of line decls, such as:
class C {
C() { }
int a;
};
C::C() : a(10) { }
We also diagnose when initializers are used on declarations that aren't constructors:
t.cpp:1:10: error: only constructors take base initializers
void f() : a(10) { }
^
Doug and/or Sebastian: I'd appreciate a review, especially the nested-name-spec test results (from the looks of it we now match gcc in that test.)
llvm-svn: 67672
Diffstat (limited to 'clang/lib/Driver/OptTable.cpp')
0 files changed, 0 insertions, 0 deletions