Chris Lattner
|
503fadc90f
|
Parse jump-statement: goto, continue, break, return.
llvm-svn: 38849
|
2006-08-10 05:45:44 +00:00 |
Chris Lattner
|
ab180365ac
|
Add a warning
llvm-svn: 38848
|
2006-08-10 05:22:36 +00:00 |
Chris Lattner
|
53361ac130
|
Refactor init-declarator-list parsing code to allow for-statements to have
initializers in them.
llvm-svn: 38847
|
2006-08-10 05:19:57 +00:00 |
Chris Lattner
|
9075bd7727
|
implement switch/while/do/for statement parsing, implementing Parser/statements.c:test2
llvm-svn: 38846
|
2006-08-10 04:59:57 +00:00 |
Chris Lattner
|
905caf37a0
|
add test2
llvm-svn: 38845
|
2006-08-10 04:59:23 +00:00 |
Chris Lattner
|
c951dae2a4
|
Parse if statements
llvm-svn: 38844
|
2006-08-10 04:23:57 +00:00 |
Chris Lattner
|
4dfe4b9da1
|
new testcase
llvm-svn: 38843
|
2006-08-09 05:47:56 +00:00 |
Chris Lattner
|
0ccd51ebe2
|
Start parsing statements and function bodies. This implements
Parser/statements.c:test1.
llvm-svn: 38842
|
2006-08-09 05:47:47 +00:00 |
Chris Lattner
|
fff824fe14
|
Simplify and fill out parsing of function bodies.
llvm-svn: 38841
|
2006-08-07 06:31:38 +00:00 |
Chris Lattner
|
2534b877b4
|
add some accessor methods.
llvm-svn: 38840
|
2006-08-07 05:50:47 +00:00 |
Chris Lattner
|
bf320c84a5
|
better comments, infrastructure for parsing function bodies.
llvm-svn: 38839
|
2006-08-07 05:05:30 +00:00 |
Chris Lattner
|
d5d0a6c2b5
|
Capture function information, provide a place to validate Declarator information.
llvm-svn: 38838
|
2006-08-07 00:58:14 +00:00 |
Chris Lattner
|
a350722189
|
comment cleanup
llvm-svn: 38837
|
2006-08-07 00:33:37 +00:00 |
Chris Lattner
|
6c7416c382
|
Start capturing pointer and array declarator info.
llvm-svn: 38836
|
2006-08-07 00:19:33 +00:00 |
Chris Lattner
|
14776b9501
|
Implement some more error recovery
llvm-svn: 38835
|
2006-08-06 22:27:40 +00:00 |
Chris Lattner
|
0ef405cdb9
|
MAke the default be to stop at ;'s
llvm-svn: 38834
|
2006-08-06 22:00:57 +00:00 |
Chris Lattner
|
eec40f9990
|
Start implementing error recovery, this implements test/Parser/recovery-1.c
llvm-svn: 38833
|
2006-08-06 21:55:29 +00:00 |
Chris Lattner
|
944bde95ef
|
new testcase
llvm-svn: 38832
|
2006-08-06 21:55:13 +00:00 |
Chris Lattner
|
1906f8087d
|
Improve handling of [*]
llvm-svn: 38831
|
2006-08-06 19:14:46 +00:00 |
Chris Lattner
|
8a39edc931
|
Warn for c99-specific array use
llvm-svn: 38830
|
2006-08-06 18:33:32 +00:00 |
Chris Lattner
|
cc211add25
|
Make this testcase pass the right arg.
llvm-svn: 38829
|
2006-08-06 18:31:20 +00:00 |
Chris Lattner
|
e8074e65dd
|
Parse array declarators, tested by Parser/declarators.c
llvm-svn: 38828
|
2006-08-06 18:30:15 +00:00 |
Chris Lattner
|
eecc5b53ae
|
Add a -fsyntax-only argument
llvm-svn: 38827
|
2006-08-06 18:29:56 +00:00 |
Chris Lattner
|
c697e028c6
|
Run tests in a specific order
llvm-svn: 38826
|
2006-08-06 18:29:35 +00:00 |
Chris Lattner
|
df89dd42d7
|
new testcase
llvm-svn: 38825
|
2006-08-06 18:22:00 +00:00 |
Chris Lattner
|
acd58a3c33
|
Parse parenthesized and function declarators now, allowing us to parse things
like: "void (*signal(int, void (*)(int)))(int);"
llvm-svn: 38824
|
2006-08-06 17:24:14 +00:00 |
Chris Lattner
|
15356a7065
|
Start capturing declarator information in a new Declarator object.
llvm-svn: 38823
|
2006-08-06 00:02:28 +00:00 |
Chris Lattner
|
2df305abfa
|
New file
llvm-svn: 38822
|
2006-08-05 23:08:14 +00:00 |
Chris Lattner
|
971c6b681a
|
Add scaffolding for scopes.
llvm-svn: 38821
|
2006-08-05 22:46:42 +00:00 |
Chris Lattner
|
2d4f2c3ebe
|
Update comment
llvm-svn: 38820
|
2006-08-05 22:09:17 +00:00 |
Chris Lattner
|
d286488c5f
|
Make error recovery "better"
llvm-svn: 38819
|
2006-08-05 08:09:44 +00:00 |
Chris Lattner
|
d9c3c59fc0
|
Continue work on declspecs and declarations
llvm-svn: 38818
|
2006-08-05 06:26:47 +00:00 |
Chris Lattner
|
8e90ef6ccc
|
add some notes
llvm-svn: 38817
|
2006-08-05 03:30:45 +00:00 |
Chris Lattner
|
f63f89acc2
|
Handle __thread and storage-class-specifiers
llvm-svn: 38816
|
2006-08-05 03:28:50 +00:00 |
Chris Lattner
|
fe533e3ecd
|
make error message more useful
llvm-svn: 38815
|
2006-08-05 02:54:06 +00:00 |
Chris Lattner
|
158ede8e44
|
Add a citation
llvm-svn: 38814
|
2006-08-04 06:42:38 +00:00 |
Chris Lattner
|
1ae23294fb
|
C99 requires at least one type specifier.
llvm-svn: 38813
|
2006-08-04 06:42:31 +00:00 |
Chris Lattner
|
fef9d2bba7
|
Diagnose specifiers with invalid _Complex/_Imaginary components.
llvm-svn: 38812
|
2006-08-04 06:36:52 +00:00 |
Chris Lattner
|
839713c085
|
Emit diagnostics for things like 'signed _Bool' and 'short float'
llvm-svn: 38811
|
2006-08-04 06:15:52 +00:00 |
Chris Lattner
|
494f27a0b8
|
Enable _Bool as an extension in C++
llvm-svn: 38810
|
2006-08-04 06:12:13 +00:00 |
Chris Lattner
|
6d998556de
|
Fix precedence problem
llvm-svn: 38809
|
2006-08-04 06:11:48 +00:00 |
Chris Lattner
|
deb42f5a96
|
Add some missing assignments.
llvm-svn: 38808
|
2006-08-04 05:26:52 +00:00 |
Chris Lattner
|
da48a8e66b
|
Parse and validate cvr type-qualifiers
llvm-svn: 38807
|
2006-08-04 05:25:55 +00:00 |
Chris Lattner
|
22dc378630
|
Split LangOptions out into its own header
llvm-svn: 38806
|
2006-08-04 04:44:06 +00:00 |
Chris Lattner
|
b9093cd1d0
|
Add an initial cut at a datastructure for holding declspec's.
llvm-svn: 38805
|
2006-08-04 04:39:53 +00:00 |
Chris Lattner
|
c0acd3d621
|
Split declaration parsing out into Declarations.cpp
llvm-svn: 38804
|
2006-07-31 05:13:43 +00:00 |
Chris Lattner
|
70f32b7d68
|
Add initial very-incomplete support for parsing declarations. We just manage
to be able to parse "int x;" now.
llvm-svn: 38803
|
2006-07-31 05:09:04 +00:00 |
Chris Lattner
|
0bb5f835e4
|
initial support for parsing, right now just ;'s at the top level, but this
adds most simple scaffolding.
llvm-svn: 38802
|
2006-07-31 01:59:18 +00:00 |
Chris Lattner
|
34dfaee634
|
Misc cleanups
llvm-svn: 38801
|
2006-07-31 01:57:54 +00:00 |
Chris Lattner
|
95a06b34f7
|
Simplify implementation of varargs macros by adding the __VA_ARGS__ token
to the formal argument list of a C99 varargs macro.
llvm-svn: 38800
|
2006-07-30 08:40:43 +00:00 |