-
Notifications
You must be signed in to change notification settings - Fork 107
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
Add custom config file support for clang-format #153
Conversation
Signed-off-by: John Shepherd <johnshepherd96@yahoo.com>
Using a file in the cwd is kind of opaque. You have to know that this feature exists in order to use it. I would suggest to instead add a command line option to the CLI as well as a keyword argument and global variable to the CMake API. |
Signed-off-by: John Shepherd <johnshepherd96@yahoo.com>
Added suggested CMake changes |
ament_cmake_clang_format/cmake/ament_cmake_clang_format_lint_hook.cmake
Outdated
Show resolved
Hide resolved
Signed-off-by: John Shepherd <johnshepherd96@yahoo.com>
ament_cmake_clang_format/cmake/ament_cmake_clang_format_lint_hook.cmake
Outdated
Show resolved
Hide resolved
Signed-off-by: John Shepherd <johnshepherd96@yahoo.com>
Signed-off-by: John Shepherd <johnshepherd96@yahoo.com>
Looks like this introduced some linter failures on the nightly CI: @JShep1 can you please fix those up? Also, it's preferable if you run CI even for small changes like this before merging. Thanks! |
Btw, If you need help running the tests locally, or configuring CI so it's as quick as possible while still covering the change, let me know. |
Resolved in #162 |
Currently only the
.clang-format
file in theconfiguration/
directory can be used. This update adds support for custom.clang-format
files placed in the directory from whichament_clang_format
is called.Signed-off-by: John Shepherd johnshepherd96@yahoo.com