Skip to content
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
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Cc sema #125

wants to merge 13 commits into from

Commits on May 23, 2022

  1. cc: improve parsing of type

    - 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
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    03a212f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    690d578 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2859615 View commit details
    Browse the repository at this point in the history
  4. cc: added SrcRef support for each ast entry

    - 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
    ```
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    2ec4d22 View commit details
    Browse the repository at this point in the history
  5. cc: added global decl

    - used because global variable are handled differently than local variable
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    c4f9a22 View commit details
    Browse the repository at this point in the history
  6. cc: added sema report

    + added sema_scope _reset
    + added pass in sema
    + remove visit_statement
    + format code
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    562dfe5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eec7270 View commit details
    Browse the repository at this point in the history
  8. cc: added error dumping

    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    822dbec View commit details
    Browse the repository at this point in the history
  9. cc: reworked cref

    - use a simpler structure
    - reformat code
    - removed CREF macro
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    1ebbfd5 View commit details
    Browse the repository at this point in the history
  10. parse: moved src ref in an other file

    + put scan_srcref_info in it
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    1d390aa View commit details
    Browse the repository at this point in the history
  11. parse: moved csema report in a parse specific translation unit

    - 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
    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    e864986 View commit details
    Browse the repository at this point in the history
  12. WIP

    sleepy-monax authored and Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    fff11cd View commit details
    Browse the repository at this point in the history
  13. cc: wip update/merge

    Supercip971 committed May 23, 2022
    Configuration menu
    Copy the full SHA
    b2196ac View commit details
    Browse the repository at this point in the history