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

Add -quickfix compiler option to apply quickfixes to source files #10482

Merged
merged 1 commit into from
Aug 15, 2023

Commits on Aug 4, 2023

  1. Add -quickfix compiler option to apply quick fixes to source files

    With 2.13.12 the compiler starts providing quick fixes with certain
    warnings and errors. Typically these are presented in IDEs, however
    it can also be practical to have the compiler directly patch the source
    files.
    
    From `-quickfix:help`:
    
    ```
    Apply quick fixes provided by the compiler for warnings and errors to source files.
    Syntax: -quickfix:<filter>,...,<filter>
    
    <filter> syntax is the same as for configurable warnings, see `-Wconf:help`. Examples:
      -quickfix:any                    apply all available quick fixes
      -quickfix:msg=Auto-application   apply quick fixes where the message contains "Auto-application"
    
    Use `-Wconf:any:warning-verbose` to display applicable message filters with each warning.
    ```
    lrytz committed Aug 4, 2023
    Configuration menu
    Copy the full SHA
    cbd18f3 View commit details
    Browse the repository at this point in the history