Skip to content

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

@Letme Letme requested a review from JasperCraeghs August 6, 2024 09:54
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