[ament_cmake_cppcheck] Fix file exclusion behavior#329
Merged
audrow merged 1 commit intoament:masterfrom Dec 8, 2021
Merged
Conversation
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
aprotyas
commented
Oct 17, 2021
Contributor
Author
audrow
approved these changes
Oct 19, 2021
Contributor
audrow
left a comment
There was a problem hiding this comment.
Looks good with green CI.
Contributor
Author
Contributor
Author
Contributor
Author
|
The test failure in Windows CI is unrelated and also seen in the Windows nightly: https://ci.ros2.org/view/nightly/job/nightly_win_rel/2099/testReport/ |
Contributor
Contributor
Author
|
I think the linter failures were addressed in ros2/rmw_implementation#200, so I'll just re-run CI: |
Contributor
Thanks, @aprotyas! |
Contributor
Author
|
@audrow could you make a new release after merging this please? That would unblock ros2/geometry2#469. Thank you! |
Contributor
Sure, I'll try to do it today. |
Contributor
|
Here's the release for rolling: ros/rosdistro#31443. |
Contributor
Author
|
Thanks! |
aprotyas
added a commit
to aprotyas/ament_lint
that referenced
this pull request
Apr 7, 2022
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit fd2feb1) Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
This was referenced Apr 7, 2022
mjeronimo
pushed a commit
that referenced
this pull request
Apr 22, 2022
The `EXCLUDE` argument of the `ament_cppcheck` CMake function is a list, i.e. a multi-value keyword. As such, it needs to be placed out of the one-value keywords from the `cmake_parse_arguments` function call. Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu> (cherry picked from commit fd2feb1) Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
EXCLUDEargument of theament_cppcheckCMake function isa list, i.e. a multi-value keyword. As such, it needs to be placed
out of the one-value keywords from the
cmake_parse_argumentsfunction call.
Without this change, the following invocation:
produces the following CLI command:
and not the desired CLI command:
Signed-off-by: Abrar Rahman Protyasha aprotyas@u.rochester.edu