History log of /external/clang/test/Sema/init.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3e78b19e51034dd27c6e0d811522148345e299e4 09-Feb-2012 Aaron Ballman <aaron@aaronballman.com> Switching to using dyn_cast_or_null, and fixing line endings in the test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150209 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
0ca7e8bf904d1c2cf70d271f3a06c1d71ff7e4fb 09-Feb-2012 Aaron Ballman <aaron@aaronballman.com> Attempting to initialize a union member that does not exist no longer crashes.

Patch by Remi Gacogne

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150144 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
8a5d929268beeb69b654120fb0b4f8893ad230eb 26-Sep-2011 Eli Friedman <eli.friedman@gmail.com> CheckStringInit has side effects; make sure we don't run it in VerifyOnly mode, at least for the moment. <rdar://problem/10185490>.

Sebastian, please take a look at this; I'm not entirely sure it is the right thing to do.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140552 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
16c5dea6c2d3e4cf529de9d9b37f6a40441acb2c 10-Oct-2010 Chris Lattner <sabre@nondot.org> fix PR8217, a silent miscompilation of invalid code.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116166 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
c79f767941fdfedb02d20296a042ad951a593890 08-Sep-2010 Daniel Dunbar <daniel@zuster.org> tests: Use -ffreestanding when including stdint.h, to avoid platform dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113301 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
00619623af0b9d3271e31402ec1a95e84c2c4526 23-Jun-2010 Douglas Gregor <dgregor@apple.com> Vector types are not arithmetic types, either. Note that we now ban
__real myvec and __imag myvec, since they aren't all that useful (it's
just an identity function) but we might want to use them in more
restricted cases in the future (e.g., "__real mycomplexvec" could
extract the real parts of a vector of complex numbers).


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
a7d3c04fcfe9d4af2f7758f46aef26b1a8f8ac09 07-May-2010 Rafael Espindola <rafael.espindola@gmail.com> Fix PR4386 by implementing gcc's old behaviour (4.2) when initializing
variables with a comparison of a function pointer with 0.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
7727acf243ee61c0757d86c95b69dbee56a3d898 31-Mar-2010 John McCall <rjmccall@apple.com> Fix PR6327: restore invariants when there's a parse error in an initializer.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99980 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
cfdc81a83467973b14e4ea5e9e9af1690f135415 19-Dec-2009 Eli Friedman <eli.friedman@gmail.com> Initialization improvements: addition of string initialization and a few
small bug fixes in SemaInit, switch over SemaDecl to use it more often, and
change a bunch of diagnostics which are different with the new initialization
code.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91767 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 15-Dec-2009 Daniel Dunbar <daniel@zuster.org> Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.
- This is designed to make it obvious that %clang_cc1 is a "test variable"
which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it
can be useful to redefine what gets run as 'clang -cc1' (for example, to set
a default target).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
67f85fcdab64f36233a7211f963ed1cccffcbfb8 04-Dec-2009 Eli Friedman <eli.friedman@gmail.com> Fix for PR5447: teach Evaluate to deal with floating-point conditionals.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d8ac05753dc4506224d445ff98399c01da3136e5 03-Nov-2009 John McCall <rjmccall@apple.com> Reorganize the parsing of decl groups / function definitions so that
declarators are parsed primarily within a single function (at least for
these cases). Remove some excess diagnostics arising during parse failures.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85924 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
bb6415c69fc6440c337970e39749d4d482d9de42 31-May-2009 Eli Friedman <eli.friedman@gmail.com> Fix for PR4285: allow intializing a const wchar_t array with a wide
string.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72663 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
b6c8c8bd8d362c8a6cdb767415b0d21e62b77eb2 21-Apr-2009 Douglas Gregor <dgregor@apple.com> Explictly track tentative definitions within Sema, then hand those
tentative definitions off to the ASTConsumer at the end of the
translation unit.

Eliminate CodeGen's internal tracking of tentative definitions, and
instead hook into ASTConsumer::CompleteTentativeDefinition. Also,
tweak the definition-deferal logic for C++, where there are no
tentative definitions.

Fixes <rdar://problem/6808352>, and will make it much easier for
precompiled headers to cope with tentative definitions in the future.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69681 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
23c4b1883b13dc17484b7214091b73f3ba29096e 29-Mar-2009 Chris Lattner <sabre@nondot.org> hoist checks for ; and in out of ParseInitDeclaratorListAfterFirstDeclarator
into ParseSimpleDeclaration, and improve a diagnostic.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68009 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d7d5f0223bd30dfd618762349c6209dd1d5ea3e6 24-Mar-2009 Daniel Dunbar <daniel@zuster.org> Rename clang to clang-cc.

Tests and drivers updated, still need to shuffle dirs.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67602 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
42edd0d32a729d2735a6fb152ba6bf349bf0a169 24-Mar-2009 Eli Friedman <eli.friedman@gmail.com> Fix PR3868 by making Evaluate handle cases like "(long)&a + 4".



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
275a369f003f25bd22c00c1c0fc0251c7208caf4 11-Mar-2009 Douglas Gregor <dgregor@apple.com> Add type checking for tentative definitions at the end of the
translation unit.

Thread the various declarations of variables via
VarDecl::getPreviousDeclaration.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66601 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
91110ee24e3475e0a3a38938c7b98439b5cf0b0e 23-Feb-2009 Eli Friedman <eli.friedman@gmail.com> A few small improvements to Evaluate for stuff I noted in FIXMEs.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65305 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
c91b7d9216e2747bc2fa8886cf1776e769539b88 22-Feb-2009 Eli Friedman <eli.friedman@gmail.com> Fix test to be legal on 64-bit systems.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65270 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
7c53ca6e03833adab4465462b7d5c888741b715d 18-Feb-2009 Douglas Gregor <dgregor@apple.com> Downgrade the "excess elements in initializer" errors to warnings *in
C*. They're required errors in C++.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
392cf91c7b3270a9b27baa3c5b21a836f3330d98 07-Feb-2009 Sebastian Redl <sebastian.redl@getdesigned.at> Use our new snazzy stdint.h to make a testcase 64-bit portable.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63985 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d863517ab7e936cbc3244a0fc431c8b672f5ece4 02-Feb-2009 Douglas Gregor <dgregor@apple.com> Add iterators to LookupResult, allowing one to iterate over the
non-ambiguous name lookup results without allocating any memory, e.g.,
for sets of overloaded functions.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63549 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d079b2d6005bdade40ae4a0f228aba2affc591cf 30-Jan-2009 Douglas Gregor <dgregor@apple.com> Closed out a few radars that were addressed by designated initializers

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63398 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
91b9f2072a20906dd34ac6cb83813debf3595328 24-Jan-2009 Anders Carlsson <andersca@mac.com> Ignore parens when determining if an expr is a string literal. Fixes PR3382.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62922 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
f6c717c3dca839dcd189b4a6fa46c8fe7a8bec1d 23-Jan-2009 Douglas Gregor <dgregor@apple.com> Properly manage the bit-widths of APInts/APSInts in array initialization.
Fixes PR clang/3377


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62851 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
4ec339f43c0cae2678334850c90926bea10999c7 19-Jan-2009 Douglas Gregor <dgregor@apple.com> Centralize error reporting of improper uses of incomplete types in the
new DiagnoseIncompleteType. It provides additional information about
struct/class/union/enum types when possible, either by pointing to the
forward declaration of that type or by pointing to the definition (if
we're in the process of defining that type).
Fixes <rdar://problem/6500531>.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62521 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
9f4d86389f99c5d66664382add340a2ea19ad134 22-Nov-2008 Sebastian Redl <sebastian.redl@getdesigned.at> Fix test cases broken by quote normalization in diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59888 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
1f6f54be86a514d531ec231fd837858a43cfe72e 11-Nov-2008 Chris Lattner <sabre@nondot.org> Fix PR3031 by silencing follow-on errors in invalid declarations.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59027 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
48c2e909741a7b67ead01143edabd7b3fe42ee50 07-Nov-2008 Argyrios Kyrtzidis <akyrtzi@gmail.com> Fix crash caused by this:

void f() {
int +; // crash here
}


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58846 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
e2f56196e916e4d2f9eeec5c8978490cdedb3f64 03-Nov-2008 Chris Lattner <sabre@nondot.org> Fix PR3001: if we have an error parsing an initializer, make sure to remove
the designator corresponding to it, otherwise Sema and later parsing will
get confused.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
67c8601677a6a4b01a77855b8b51240ef44acfb3 02-Sep-2008 Nuno Lopes <nunoplopes@sapo.pt> add the other test case for completeness and to avoid regressions in the future

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55629 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
b529d830b3b1667157da92ab0b5c32e1acfafbab 02-Sep-2008 Eli Friedman <eli.friedman@gmail.com> Fix for PR2747: allow pointer->int casts with a null base; these are
offset-of-like expressions.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
1e465df22f312a3661d70fc15b1a55dc97ebfce8 25-Aug-2008 Daniel Dunbar <daniel@zuster.org> Add test case for function-pointer-cast-of-global as constant
expression.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55323 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d5bac5704768606c3182dcc1386de12b3944601b 19-Aug-2008 Chris Lattner <sabre@nondot.org> add testcase we already handle.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54967 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d8803632d248a360a040ff03eff1162988058036 10-Aug-2008 Chris Lattner <sabre@nondot.org> wrap some long diagnostics, make 'initializer is not a constant' diagnostic
a bit more clear (rdar://5646070)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54606 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
f8f873deef78de611dd793a1e1201bef0d5a54a3 30-May-2008 Eli Friedman <eli.friedman@gmail.com> Make sure to allow assigning a pointer to a bool.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51778 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
97c0a391138d20e1066174a9cfa92860fb06e5a1 21-May-2008 Eli Friedman <eli.friedman@gmail.com> Fix a couple of bugs found by Neil Booth in the const-ness checking.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51361 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
be34ac67225fc4af6134c7f3507c777cceeec867 04-May-2008 Chris Lattner <sabre@nondot.org> add testcase for pr2050 which is now fixed.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50610 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
a312ce2bdaaff62f21d560bad6cb0519f613d334 08-Feb-2008 Eli Friedman <eli.friedman@gmail.com> Improve diagnostic for illegal array initialization.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46869 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
d411e04db18f7d07a889d51086861b23cbe05518 02-Dec-2007 Chris Lattner <sabre@nondot.org> all filevar's have static storage. Previously a global with
extern storage class was returning false from hasStaticStorage.
Ted, please review this.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44515 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
4cc627111453b75519d5130b57e06256da7b00e8 27-Nov-2007 Chris Lattner <sabre@nondot.org> add several cases that Expr::hasStaticStorage missed, pointed out by Oliver Hunt


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44376 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c
4ef8dd6e8736097bf9e3c387139c668565d89dca 01-Nov-2007 Chris Lattner <sabre@nondot.org> Implement test/Sema/init.c by treating functions as constants.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43599 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/init.c