-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Cc sema #125
Open
Supercip971
wants to merge
13
commits into
main
Choose a base branch
from
cc-sema
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Cc sema #125
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sleepy-monax
force-pushed
the
main
branch
2 times, most recently
from
April 16, 2022 14:52
3e6d547
to
293e207
Compare
Supercip971
force-pushed
the
cc-sema
branch
2 times, most recently
from
May 22, 2022 22:25
299736a
to
fff11cd
Compare
- now we detect int / bool / char ... - fixed this case: ```c int v = 0; // as int was not a recognized type, this was resulting in an empty expr ``` - fixed cc dump of argument
- now we store a range of position note: we can't just use a range because we may do later on macro expansion in it: ```c test b; // ---- error 2 | test b; | ^^^ in expansion of macro test | | 1 | #define test (void* aaaa) | ^^^^ invalid identifier in type ```
- used because global variable are handled differently than local variable
+ added sema_scope _reset + added pass in sema + remove visit_statement + format code
- use a simpler structure - reformat code - removed CREF macro
+ put scan_srcref_info in it
- also moved cc error dumping in the parse error handling translation unit - simplified code of error dumping (even if it is still a little bit cursed) - renamed struct of srcref to make simpler to understad what is a characted index and what is a line index
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.