History log of /llvm-project/clang/lib/Sema/SemaInit.cpp (Results 1101 – 1122 of 1122)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1e5665e6 24-Nov-2008 Chris Lattner <sabre@nondot.org>

Change a whole lot of diagnostics to take QualType's directly
instead of converting them to strings first. This also fixes a
bunch of minor inconsistencies in the diagnostics emitted by clang
and a

Change a whole lot of diagnostics to take QualType's directly
instead of converting them to strings first. This also fixes a
bunch of minor inconsistencies in the diagnostics emitted by clang
and adds a bunch of FIXME's to DiagnosticKinds.def.

llvm-svn: 59948

show more ...


# 651d42db 20-Nov-2008 Chris Lattner <sabre@nondot.org>

remove the last old-fashioned Diag method. Transition complete!

llvm-svn: 59714


# f490e157 19-Nov-2008 Chris Lattner <sabre@nondot.org>

remove one more old-style Diag method.

llvm-svn: 59589


Revision tags: llvmorg-2.4.0
# 07d754ac 26-Oct-2008 Chris Lattner <sabre@nondot.org>

Remember whether an initlist had a designator in the AST.

llvm-svn: 58218


# aa64b7e0 18-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Support initialization of incomplete array with zero size (as
extension).

llvm-svn: 54946


# 56fdb6ae 11-Aug-2008 Daniel Dunbar <daniel@zuster.org>

More #include cleaning
- Kill unnecessary #includes in .cpp files. This is an automatic
sweep so some things removed are actually used, but happen to be
included by a previous header. I tried

More #include cleaning
- Kill unnecessary #includes in .cpp files. This is an automatic
sweep so some things removed are actually used, but happen to be
included by a previous header. I tried to get rid of the obvious
examples and this was the easiest way to trim the #includes in one
fell swoop.
- We now return to regularly scheduled development.

llvm-svn: 54632

show more ...


# 34fb6727 11-Aug-2008 Daniel Dunbar <daniel@zuster.org>

Minor #include cleaning
- Drop TokenKinds.h from Action.h
- Move DeclSpec.h from Sema.h into individual Sema .cpp files

llvm-svn: 54625


# eaf58530 10-Aug-2008 Steve Naroff <snaroff@apple.com>

InitListChecker::CheckListElementTypes(): Check for function types and issue an appropriate diagnostic.

llvm-svn: 54614


# a3b2f6f2 09-Aug-2008 Eli Friedman <eli.friedman@gmail.com>

Make sure to count the struct elements correctly; here, we want the
member count. The count returned by numStructUnionElements is the
number of initializers that will be consumed, not the number o

Make sure to count the struct elements correctly; here, we want the
member count. The count returned by numStructUnionElements is the
number of initializers that will be consumed, not the number of members
to iterate through. Fixes PR2534.

llvm-svn: 54601

show more ...


# 7adf0760 04-Aug-2008 Chris Lattner <sabre@nondot.org>

Finally fix PR2189. This makes a fairly invasive but important change to
move getAsArrayType into ASTContext instead of being a method on type.
This is required because getAsArrayType(const AT), whe

Finally fix PR2189. This makes a fairly invasive but important change to
move getAsArrayType into ASTContext instead of being a method on type.
This is required because getAsArrayType(const AT), where AT is a typedef
for "int[10]" needs to return ArrayType(const int, 10).

Fixing this greatly simplifies getArrayDecayedType, which is a good sign.

llvm-svn: 54317

show more ...


# 554a07ba 09-Jun-2008 Argyrios Kyrtzidis <akyrtzi@gmail.com>

-Changes to TagDecl:
Added TagKind enum.
Added getTagKind() method.
Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
-RecordDecl/CXXRecordDecl::Create() accept a TagKind e

-Changes to TagDecl:
Added TagKind enum.
Added getTagKind() method.
Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
-RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one.

llvm-svn: 52160

show more ...


Revision tags: llvmorg-2.3.0
# 75675739 09-Jun-2008 Eli Friedman <eli.friedman@gmail.com>

For struct initialization, check compatibility with the unqualified
type; this isn't explicitly stated in the standard, but it doesn't
really make sense for them to have an effect here. Fixes the

For struct initialization, check compatibility with the unqualified
type; this isn't explicitly stated in the standard, but it doesn't
really make sense for them to have an effect here. Fixes the included
testcase, sent to me by Steve Naroff.

llvm-svn: 52113

show more ...


# 0e56c82e 25-May-2008 Eli Friedman <eli.friedman@gmail.com>

Count the number of initializable members correctly in structs/unions
with unnamed members.

llvm-svn: 51557


# e0f832bd 25-May-2008 Eli Friedman <eli.friedman@gmail.com>

Diagnose implicit init list for empty aggregate, like struct {}. Fixes
PR2151 (by not creating the empty implicit init list).

llvm-svn: 51556


# 85f5497c 25-May-2008 Eli Friedman <eli.friedman@gmail.com>

Move the error checking for variable-sized objects so we don't
double-report errors; fixes PR2362.

llvm-svn: 51555


# d0e48ea6 20-May-2008 Eli Friedman <eli.friedman@gmail.com>

Be a bit more defensive in SemaInit.

llvm-svn: 51301


# 6fcdec28 19-May-2008 Eli Friedman <eli.friedman@gmail.com>

Adjust warning so that it doesn't fire when there is an error.

llvm-svn: 51269


# feb4cc1c 19-May-2008 Eli Friedman <eli.friedman@gmail.com>

Add errors for some illegal constructs (specifically, "int a = {{3}};"
and "int a = {};"). I'll adjust the tests in a bit.

llvm-svn: 51265


# 5a36d3ff 19-May-2008 Eli Friedman <eli.friedman@gmail.com>

Some more SemaInit cleanup.

llvm-svn: 51262


# 23a9e317 19-May-2008 Eli Friedman <eli.friedman@gmail.com>

Various fixes; solves (almost) all of the test regressions that would be
caused by enabling SemaInit.

llvm-svn: 51261


# 125d73dc 06-May-2008 Steve Naroff <snaroff@apple.com>

Several fixes to SemaInit.cpp. It's still not enabled (since it fails a few tests). Expect to enable it very soon.

llvm-svn: 50688


# f8ecff2a 01-May-2008 Steve Naroff <snaroff@apple.com>

Replace Sema::CheckInitializerListTypes() with a helper class (InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I als

Replace Sema::CheckInitializerListTypes() with a helper class (InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp.

NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home.
llvm-svn: 50544

show more ...


1...<<4142434445