llvm-project/clang/Sema
Chris Lattner 720a054994 Enforce the rest of C99 6.7.2.1p2, emitting diagnostics like:
t.c:10:15: warning: 'bonk' may not be nested in a struct due to flexible array member
  struct bink bonk;
              ^
t.c:13:14: error: 'struct bink' may not be used as an array element due to flexible array member
struct bink A[123];
             ^
for:

struct bink {
  struct bink *a;
  int X[];  // ok.
};

struct foo {
  int A;
  struct bink bonk;
};

struct bink A[123];

llvm-svn: 39296
2007-01-25 00:44:24 +00:00
..
ASTStreamer.cpp introduce a new ASTContext class to hold long-lived ast nodes. 2006-11-10 06:20:45 +00:00
Sema.cpp Add support for C90 implicitly defined functions, e.g.: 2006-11-20 06:49:47 +00:00
Sema.h create field decl objects for the members of a struct/union. Diagnose code 2007-01-23 23:42:53 +00:00
SemaDecl.cpp Enforce the rest of C99 6.7.2.1p2, emitting diagnostics like: 2007-01-25 00:44:24 +00:00
SemaExpr.cpp Diagnose invalid sizeof/alignof operands. 2007-01-23 22:29:49 +00:00
SemaExprCXX.cpp Add support for parsing and pretty printing const_cast, dynamic_cast, 2006-12-04 18:06:35 +00:00
SemaStmt.cpp move semantic analysis of break/continue out of the parser into the sema class. 2006-11-10 05:17:58 +00:00
SemaType.cpp Enforce the rest of C99 6.7.2.1p2, emitting diagnostics like: 2007-01-25 00:44:24 +00:00