e1eed38733ed47d44f9d8c7731817c411eaf4141 |
|
14-Jun-2011 |
Chris Lattner <sabre@nondot.org> |
when compiling in a GNU mode (e.g. gnu99) treat VLAs with a size that can be folded to a constant as constant size arrays. This has slightly different semantics in some insane cases, but allows us to accept some constructs that GCC does. Continue to be pedantic in -std=c99 and other modes. This addressed rdar://8733881 - error "variable-sized object may not be initialized"; g++ accepts same code git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132983 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
ac4df2454d5462c3bf5f369d65c3ad651100fa40 |
|
23-Mar-2011 |
John McCall <rjmccall@apple.com> |
Warn about unused declaration-specifiers on tag declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
cfd41cfd0bd199672449db88d0502d37131a5c1f |
|
12-Jul-2010 |
Ted Kremenek <kremenek@apple.com> |
Add test case for <rdar://problem/8177927> (which triggered an assertion failure in SemaChecking). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108159 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.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/struct-decl.c
|
1eb4433ac451dc16f4133a88af2d002ac26c58ef |
|
09-Sep-2009 |
Mike Stump <mrs@apple.com> |
Remove tabs, and whitespace cleanups. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
65e6a093b1aeeab919025ff979a9f874cdffa628 |
|
29-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Fix PR4092 by improving error recovery in two ways: 1. In a struct field redefinition, don't mark the struct erroneous. The field is erroneous, but the struct is otherwise well formed. 2. Don't emit diagnostics about functions that are known to be broken already. Either fix is sufficient to silence the second diagnostic in the example, but the combination is better :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70371 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
740782a78386ad3c64c670ba9b1619545bbb4901 |
|
25-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
improve a diagnostic to make more sense. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70062 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.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/struct-decl.c
|
177f708abadfca856b83f1c540c66667d167a4e8 |
|
07-Mar-2009 |
Douglas Gregor <dgregor@apple.com> |
Tweak warning text from the last commit git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66309 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
e4f3e069e5e43d466954989dd7509ed371914bd0 |
|
07-Mar-2009 |
Douglas Gregor <dgregor@apple.com> |
Downgrade complaints about the use of variable-sized types within a struct to an extension warning to match the behavior of GNU C, which addresses the Sema part of PR3671. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66308 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
85c351551688a101c5ce918e5d60dea5177d72e7 |
|
22-Feb-2009 |
Eli Friedman <eli.friedman@gmail.com> |
Sanity fix for PR3642: if we're treating a diagnostic as an error, it's required to actually be an error for correctness. The attached testcase now gives an error instead of mysteriously crashing. Now, it's possible we actually want to support the given usage, but I haven't looked at the relevant code closely. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65253 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
6beb16578ebbe56b88318a0f062cd01fcf2a459c |
|
19-Feb-2009 |
Zhongxing Xu <xuzhongxing@gmail.com> |
fix test case git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65037 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
1931b44da8da86979a8d7ceb48685686503f197b |
|
03-Feb-2009 |
Douglas Gregor <dgregor@apple.com> |
Simplify the way in which we inject the names of tag definitions and elaborated-type-specifier declarations into outer scopes while retaining their proper lexical scope. This way is simpler and more consistent with the way DeclContexts work, and also fixes http://llvm.org/bugs/show_bug.cgi?id=3430 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
1dfa6e15cba39f27a438d63837435596e58af1c1 |
|
02-Feb-2009 |
Nuno Lopes <nunoplopes@sapo.pt> |
fix TryToFixInvalidVariablyModifiedType to reject negative array sizes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|
f23199847b686ca2d674274ee7271f75640c1e0e |
|
02-Feb-2009 |
Nuno Lopes <nunoplopes@sapo.pt> |
fix PR3459: improve compatibility with gcc when checking for constant exprs git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Sema/struct-decl.c
|