Skip to content

Commit

Permalink
Update RegEx comment
Browse files Browse the repository at this point in the history
Co-authored-by: Steven! Ragnarök <[email protected]>
Signed-off-by: Eli Benevedes <[email protected]>
  • Loading branch information
2 people authored and Eli Benevedes committed Nov 19, 2022
1 parent 8703010 commit 16d5e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ament_clang_tidy/ament_clang_tidy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def start_subprocess(full_cmd):
# (\/home\/^[^:]*) : Group capture. Everything from `/home/` up until a `:`.
# (\d+) : Group capture. Grabs line number.
# (\d+) : Group capture. Grabs column number.
# (?:warning:|error:note:) : Non-capturing group. Matches warning, error, note.
# (?:warning:|error:|note:) : Non-capturing group. Matches warning, error, note.
# \[(.*)\] : Matches and captures [<rule_name>]. Ignores any messages from clang_tidy without an ending [<rule_name>].
error_re = re.compile('\\s*\^?\/home\/([^:]*):(\\d+):(\\d+): (?:warning:|error:|note:).*\\[(.*)\\]')

Expand Down

0 comments on commit 16d5e4a

Please sign in to comment.