Skip to content

Commit 64a32c4

Browse files
committed
Merge branch 'rolling' into clang-tidy-add-extra-arg-option
2 parents 15d5c2c + bf3c609 commit 64a32c4

File tree

89 files changed

+530
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+530
-77
lines changed

ament_clang_format/CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
Changelog for package ament_clang_format
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
0.16.2 (2023-12-26)
6+
-------------------
7+
8+
0.16.1 (2023-11-06)
9+
-------------------
10+
11+
0.16.0 (2023-10-04)
12+
-------------------
13+
514
0.15.2 (2023-07-11)
615
-------------------
716

ament_clang_format/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="2">
44
<name>ament_clang_format</name>
5-
<version>0.15.2</version>
5+
<version>0.16.2</version>
66
<description>
77
The ability to check code against style conventions using
88
clang-format and generate xUnit test result files.</description>

ament_clang_format/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name=package_name,
8-
version='0.15.2',
8+
version='0.16.2',
99
packages=find_packages(exclude=['test']),
1010
data_files=[
1111
('share/' + package_name, ['package.xml']),

ament_clang_tidy/CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
Changelog for package ament_clang_tidy
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
0.16.2 (2023-12-26)
6+
-------------------
7+
8+
0.16.1 (2023-11-06)
9+
-------------------
10+
* remove AMENT_IGNORE check in clang-tidy when looking for compilation db (`#441 <https://github.com/ament/ament_lint/issues/441>`_)
11+
* Contributors: Alberto Soragna
12+
13+
0.16.0 (2023-10-04)
14+
-------------------
15+
516
0.15.2 (2023-07-11)
617
-------------------
718

ament_clang_tidy/ament_clang_tidy/main.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def invoke_clang_tidy(compilation_db_path):
161161
cmd.append('--extra-arg=' + args.extra_arg)
162162

163163
def is_gtest_source(file_name):
164-
if(file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc'
165-
or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc'):
164+
if file_name == 'gtest_main.cc' or file_name == 'gtest-all.cc' \
165+
or file_name == 'gmock_main.cc' or file_name == 'gmock-all.cc':
166166
return True
167167
return False
168168

@@ -288,9 +288,13 @@ def get_compilation_db_files(paths):
288288
for path in paths:
289289
if os.path.isdir(path):
290290
for dirpath, dirnames, filenames in os.walk(path):
291-
if 'AMENT_IGNORE' in dirnames + filenames:
292-
dirnames[:] = []
293-
continue
291+
# NOTE: here we don't check for the AMENT_IGNORE file.
292+
# This function tries to find compile_commands.json file in the build folders.
293+
# Build folders always include a AMENT_IGNORE file, so checking for it would
294+
# result in not finding any compilation db. The check would also be redundant
295+
# because if a source folder was marked with AMENT_IGNORE, then
296+
# the compile_commands.json will not be present in relevant build folder.
297+
294298
# ignore folder starting with . or _
295299
dirnames[:] = [d for d in dirnames if d[0] not in ['.', '_']]
296300
dirnames.sort()

ament_clang_tidy/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="2">
44
<name>ament_clang_tidy</name>
5-
<version>0.15.2</version>
5+
<version>0.16.2</version>
66
<description>
77
The ability to check code against style conventions using
88
clang-tidy and generate xUnit test result files.</description>

ament_clang_tidy/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name=package_name,
8-
version='0.15.2',
8+
version='0.16.2',
99
packages=find_packages(exclude=['test']),
1010
data_files=[
1111
('share/' + package_name, ['package.xml']),

ament_cmake_clang_format/CHANGELOG.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
Changelog for package ament_cmake_clang_format
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
0.16.2 (2023-12-26)
6+
-------------------
7+
8+
0.16.1 (2023-11-06)
9+
-------------------
10+
11+
0.16.0 (2023-10-04)
12+
-------------------
13+
514
0.15.2 (2023-07-11)
615
-------------------
716

ament_cmake_clang_format/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="2">
44
<name>ament_cmake_clang_format</name>
5-
<version>0.15.2</version>
5+
<version>0.16.2</version>
66
<description>
77
The CMake API for ament_clang_format to lint C / C++ code using clang format.
88
</description>

ament_cmake_clang_tidy/CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
Changelog for package ament_cmake_clang_tidy
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
0.16.2 (2023-12-26)
6+
-------------------
7+
8+
0.16.1 (2023-11-06)
9+
-------------------
10+
* Provide --header-filter and --jobs to CMake. (`#450 <https://github.com/ament/ament_lint/issues/450>`_)
11+
* Contributors: Roderick Taylor
12+
13+
0.16.0 (2023-10-04)
14+
-------------------
15+
516
0.15.2 (2023-07-11)
617
-------------------
718

0 commit comments

Comments
 (0)