History log of /llvm-project/clang/test/SemaCXX/constructor-initializer.cpp (Results 51 – 65 of 65)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# e82da999 29-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

Fixed test.

llvm-svn: 77506


# 86759768 27-Jul-2009 Benjamin Kramer <benny.kra@googlemail.com>

fix test (broken in r77224)

llvm-svn: 77241


# 4dcc53f3 24-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

Fixes broken test by accident.

llvm-svn: 77001


# a5c33552 24-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

More Sema check for constructor's member initializer along
with type conversion to fix ir-gen crash.

llvm-svn: 77000


# ca2f085a 23-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

Diagnose when base classes and members to be intialized
with constructors don't have a matching constructor.

llvm-svn: 76913


# 0228bc1a 23-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

Add constructor used to initialize base/member in
CXXBaseOrMemberInitializer AST node. Needed by
its clients to do the initialization.

llvm-svn: 76826


# 341583c3 09-Jul-2009 Fariborz Jahanian <fjahanian@apple.com>

Sema check on out of order object initialization of
class object's base and members under -Wreorder flag.

llvm-svn: 75168


# 302bb666 30-Jun-2009 Fariborz Jahanian <fjahanian@apple.com>

Patch to support optional nested-name-specifier in in ctor-initializer
list.

llvm-svn: 74571


# cae5482f 30-Jun-2009 Fariborz Jahanian <fjahanian@apple.com>

Diagnose multiple initialization of anonymous union
fields in the ctor-initializer list.

llvm-svn: 74554


# 7baa71e2 30-Jun-2009 Fariborz Jahanian <fjahanian@apple.com>

More diagnostics related to initialization of direct bases
in ctor-initializer list.

llvm-svn: 74541


# 75fdaa46 25-Mar-2009 Anders Carlsson <andersca@mac.com>

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 u

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

show more ...


# a45cf5b6 24-Mar-2009 Daniel Dunbar <daniel@zuster.org>

Rename clang to clang-cc.

Tests and drivers updated, still need to shuffle dirs.

llvm-svn: 67602


Revision tags: llvmorg-2.5.0
# 810d330c 19-Feb-2009 Chris Lattner <sabre@nondot.org>

Fix a long standard problem with clang retaining "too much" sugar
information about types. We often print diagnostics where we say
"foo_t" is bad, but the user doesn't know how foo_t is declared

Fix a long standard problem with clang retaining "too much" sugar
information about types. We often print diagnostics where we say
"foo_t" is bad, but the user doesn't know how foo_t is declared
(because it is a typedef). Fix this by expanding sugar when present
in a diagnostic (and not one of a few special cases, like vectors).

Before:
t.m:5:2: error: invalid operands to binary expression ('typeof(P)' and 'typeof(F)')
MAX(P, F);
^~~~~~~~~
t.m:1:78: note: instantiated from:
#define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
^

After:
t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float'))
MAX(P, F);
^~~~~~~~~
t.m:1:78: note: instantiated from:
#define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
^

llvm-svn: 65081

show more ...


# 49de5340 10-Nov-2008 Douglas Gregor <dgregor@apple.com>

Improve parser error recovery after a constructor initializer

llvm-svn: 58989


Revision tags: llvmorg-2.4.0
# e8381c00 05-Nov-2008 Douglas Gregor <dgregor@apple.com>

Initial implementation of parsing, semantic analysis, and AST-building
for constructor initializations, e.g.,

class A { };
class B : public A {
int m;
public:
B() : A(), m(17) { };

Initial implementation of parsing, semantic analysis, and AST-building
for constructor initializations, e.g.,

class A { };
class B : public A {
int m;
public:
B() : A(), m(17) { };
};

llvm-svn: 58749

show more ...


123