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

Format preprocessed token stream in multiple passes #1898

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 14, 2023

  1. Format preprocessed token stream in multiple passes

    Currently, the formatter doesn't handle many scenarios involving preprocessor
    `ifdef`s/`endif`s interleaved with `begin`s, module headers, etc.
    This patch attempts to solve this problem by performing multiple passes of the
    formatting on preprocessed variants of the source. Each of these variants has a
    different set of preprocessor branches enabled. Together, they should cover the
    entire source (though that doesn't work in all cases yet). After several
    formatting passes for different variants of the AST, a correct and properly
    formatted file is produced.
    
    Signed-off-by: Krzysztof Bieganski <[email protected]>
    kbieganski committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    1319cd3 View commit details
    Browse the repository at this point in the history