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

Added support of info messages #4184

Merged
merged 3 commits into from
Oct 11, 2023
Merged

Added support of info messages #4184

merged 3 commits into from
Oct 11, 2023

Conversation

dmatousek
Copy link
Contributor

The PR adds support of info messages. The behavior is the same as with errors and warnings.

An example of a call is the following:

::info(ErrorType::INFO_INFERRED, "%1%: default value inferred", node);

With the following output:

main.p4(34): [--Winfo=inferred] info: start: default value inferred
    state start {
          ^^^^^

A new command-line option --Winfo=diagnostic is introduced. It allows to demote warnings to info messages (e.g., --Winfo=unused). --Wwarn has a new meaning. It promotes all info messages to warnings (it mimics --Werror).

@fruffy fruffy merged commit d79e2e8 into p4lang:main Oct 11, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants