Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt to pass the language through to cppcheck #79

Merged
merged 4 commits into from
Jun 22, 2017
Merged

Conversation

wjwwood
Copy link
Contributor

@wjwwood wjwwood commented Jun 22, 2017

Connects to ros2/ros2#368

@wjwwood wjwwood added the in review Waiting for review (Kanban column) label Jun 22, 2017
@wjwwood wjwwood self-assigned this Jun 22, 2017
@dirk-thomas
Copy link
Contributor

The CMake function (

) should expose LANGUAGE as an explicit optional single value argument (similar as
# :param MAX_LINE_LENGTH: override the maximum line length,
# the default is defined in ament_uncrustify
# :type MAX_LINE_LENGTH: integer
).

@@ -36,6 +38,9 @@ function(ament_cppcheck)
set(result_file "${AMENT_TEST_RESULTS_DIR}/${PROJECT_NAME}/${ARG_TESTNAME}.xunit.xml")
set(cmd "${ament_cppcheck_BIN}" "--xunit-file" "${result_file}")
list(APPEND cmd ${ARG_UNPARSED_ARGUMENTS})
if(ARG_LANGUAGE)
list(APPEND cmd "--languge" "${ARG_LANGUAGE}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--languge: spelling.

Same in the docblock.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't edit (there is no notification).

@wjwwood wjwwood merged commit c627ee5 into master Jun 22, 2017
@wjwwood wjwwood deleted the new_cppcheck branch June 22, 2017 05:36
@wjwwood wjwwood removed the in review Waiting for review (Kanban column) label Jun 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants