-
Notifications
You must be signed in to change notification settings - Fork 55
Compiler: move c2_assert to c2 #306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
ac7bab2 to
f6f55a9
Compare
|
It also has auto-arg changes.. please keep commits small so it's easier for me to review.. |
|
I just split this PR into 2 separate commits:
|
|
|
||
| if (a.getCall()) { | ||
| qt = ma.analyseExpr(a.getCall2(), true, RHS); | ||
| if (qt.isInvalid()) return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which case will a.getCall() be nil?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the call expression is only constructed by the parser if asserts are enabled. The expression is always parsed and stored for the analyser.
e15d382 to
32c8780
Compare
a483970 to
1fea052
Compare
d7be4b3 to
f5c7b25
Compare
66d79db to
279d496
Compare
eff433d to
e39ef71
Compare
9cc715d to
4dea1e6
Compare
26c83db to
490a7db
Compare
9112eff to
cd3548a
Compare
89b3d15 to
f045f27
Compare
605c52f to
1f65393
Compare
* compute the assert string and function call at parse time * add c2_assert module in C library interface libs/libc/c2_assert.c2i * update tests
auto_funcfunction parameter attributeauto_xxxattributes