-
-
Notifications
You must be signed in to change notification settings - Fork 611
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 clang-format support for the experimental c/cpp plugin #15395
Add clang-format support for the experimental c/cpp plugin #15395
Conversation
- Updated to 2.13.x - Removed explicit LintTargetRequests - Replaced `cpp` targets with `cc` # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
Tests coming tomorrow! |
Also, I need to spend some time looking at the command line arguments, I just put in some sane placeholders for now. |
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
- Added `args` option to command-line Pants # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
- Also testing configuration # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
…e pre-commit # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
# Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet! Thanks so much!
Regarding software supply chain management, the help message for the |
Good point - I actually thought I did put it in help, but turns out it was only in this PR description. |
- Added documentation pointing to PyPi - Replaced boilerplate with helper to_pex_request() # Rust tests and lints will be skipped. Delete if not intended. [ci skip-rust] # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huzzah! Thanks!
This PR builds off of the recently added experimental C/C++ targets, by adding the clang-format code formatter.
clang-format
with--style=file
argument looks for the closest parent directory with a.clang-format
or_clang-format
configuration file, for each input file. This provides support for multiple.clang-format
configuration files in a project hierarchy.If
--style=file
is used, but no.clang-format
file is found, then the--fallback-style=WebKit
takes precedence.In lieu of pulling executables from various sources, or building the
llvm
codebase, this PR uses the clang-format Python package.(Closes issue #15377)
[ci skip-rust]
[ci skip-build-wheels]