diff --git a/ament_clang_tidy/ament_clang_tidy/main.py b/ament_clang_tidy/ament_clang_tidy/main.py index 913d842a..3f898215 100755 --- a/ament_clang_tidy/ament_clang_tidy/main.py +++ b/ament_clang_tidy/ament_clang_tidy/main.py @@ -154,8 +154,8 @@ def invoke_clang_tidy(compilation_db_path): cmd.append('--system-headers') def is_gtest_source(file_name): - if(file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' - or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc'): + if file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' \ + or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc': return True return False