Skip to content

Add warning system #44

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

Open
PropGit opened this issue Jul 17, 2019 · 0 comments
Open

Add warning system #44

PropGit opened this issue Jul 17, 2019 · 0 comments
Labels
consider Item to be discussed and considered enhancement

Comments

@PropGit
Copy link

PropGit commented Jul 17, 2019

This is a reminder for a future task to be performed at an as-of-yet unscheduled time. For now, this is a discussion item only.

Implement a warning system, in addition to the existing error feature, within the compiler. This involves a number of considerations:

  • Multiple warnings per compilation need be possible
    • Current system relies on a single fault (error) then exit; this will likely have to be extended
  • Warning suppression
    • Ability for user to suppress warnings of certain types (when they know what they are doing and tire of particular warnings)
      • Consider command-line and/or source code features to do this
    • Never completely hide existence of warnings; ie: when any warnings were suppressed during compilation, and final warning indicating that some warnings were suppressed should appear (and that final warning should not be suppressable).
  • Should multiple errors be shown (rather than just one)?
    • Not recommended; systems like that often display many errors that are a phantom related directly to the first error.
  • Unique message codes (error, warning, info) need be implemented to allow for specific warning suppression by ID rather than requiring that specific symbolic IDs be created for that purpose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consider Item to be discussed and considered enhancement
Projects
None yet
Development

No branches or pull requests

1 participant