diff --git a/ament_clang_tidy/ament_clang_tidy/main.py b/ament_clang_tidy/ament_clang_tidy/main.py index 68a309eb..e2b1fd77 100755 --- a/ament_clang_tidy/ament_clang_tidy/main.py +++ b/ament_clang_tidy/ament_clang_tidy/main.py @@ -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 []. Ignores any messages from clang_tidy without an ending []. error_re = re.compile('\\s*\^?\/home\/([^:]*):(\\d+):(\\d+): (?:warning:|error:|note:).*\\[(.*)\\]')