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

Draft: Add gcc warnings checker #144

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Draft: Add gcc warnings checker #144

wants to merge 3 commits into from

Conversation

Letme
Copy link
Member

@Letme Letme commented Aug 6, 2024

This is a simple regex for the GCC warnings and errors. I catch the first line of the warning but discard the subsequent lines with explanation of the warning. Regex to catch that (but then doesn't work on simple warnings) is:

"(?:(?P<path1>(?:[/.]|[A-Za-z]).+?):(?P<line1>-?\d+):(?P<col1>-?\d+):\s*(?P<severity1>[Ww]arning|[Ee]rror)|<.+>:(?P<line2>-?\d+)(?::\s*(?P<severity2>[Ww]arning|[Ee]rror))?): (?P<description1>.+)\n(?P<description2>\s+\d+\s+\|\s+.*\n\s+\|\s+.*\n)\n?"g

Anyway, to get me started this should be decent enough. Let me know if you agree, then I delete (instead of comment out) the asserts for the reported warnings and add some more lines to documentation.

Contributes to #48

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.

1 participant