llvm-project/clang/Parse
Steve Naroff 197616c3a8 Several fixes/simplifications surrounding how we stream top-level decl AST's.
The following code...

typedef struct cssm_data {} CSSM_DATA, *CSSM_DATA_PTR;

struct Y { int A; };

struct X { int A; } D; 

struct X E, F;

...now produces the following output...

> ../../Debug/bin/clang xx.c -ast-print
Read top-level tag decl: 'cssm_data'
typedef struct cssm_data CSSM_DATA;
typedef struct cssm_data *CSSM_DATA_PTR;
Read top-level tag decl: 'Y'
Read top-level tag decl: 'X'
Read top-level variable decl: 'D'
Read top-level variable decl: 'E'
Read top-level variable decl: 'F'

...which is much more accurate than the previous -ast-print output...

typedef struct cssm_data CSSM_DATA;
typedef struct cssm_data CSSM_DATA;
Read top-level variable decl: 'D'
Read top-level variable decl: 'E'
Read top-level variable decl: 'E'

llvm-svn: 44421
2007-11-28 22:54:11 +00:00
..
AttributeList.cpp move IdentifierTable.h from liblex to libbasic. 2007-10-07 08:58:51 +00:00
DeclSpec.cpp Add parsing and AST support for GNU "typeof". 2007-07-31 12:34:36 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
MinimalAction.cpp Implement ObjC built-in types in MinimalAction. 2007-10-31 20:55:39 +00:00
ParseDecl.cpp Handle "bool" in all places that touch _Bool. 2007-11-15 05:25:19 +00:00
ParseDeclCXX.cpp switch some more of the parser over to using Token::is and isNot 2007-10-09 17:33:22 +00:00
ParseExpr.cpp Parse "sizeof(arr)[0]" as a sizeof of an expr if arr 2007-11-13 20:50:37 +00:00
ParseExprCXX.cpp switch more code to use Token::is/isNot where possible. 2007-10-09 17:41:39 +00:00
ParseInit.cpp Fix a recovery bug Fariborz and I noticed yesterday. We were producing: 2007-10-25 17:27:01 +00:00
ParseObjc.cpp Finish up variadic methods/messages. 2007-11-15 13:05:42 +00:00
ParseStmt.cpp Keep track of whether the asm is volatile or not. 2007-11-23 23:12:25 +00:00
Parser.cpp Several fixes/simplifications surrounding how we stream top-level decl AST's. 2007-11-28 22:54:11 +00:00