-
Notifications
You must be signed in to change notification settings - Fork 607
: Fix lint in clang-format #3041
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/3041
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit 88d244f with merge base 057e432 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D56139927 |
Summary: We are updating to clang-formatter 18. The current clang-format in coreml code has duplicate key. Deleting one of them. Differential Revision: D56139927
33ef245
to
fed1270
Compare
This pull request was exported from Phabricator. Differential Revision: D56139927 |
@@ -1,5 +1,4 @@ | |||
BasedOnStyle: WebKit | |||
BreakBeforeBraces: Attach |
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.
@cymbalrush BreakBeforeBraces was defined twice in this class. With the new clang-format 18, it doesn't allow to have duplicate keys.
Deleting one of them
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.
Here's an example error when running lintrunner
Advice (CLANGFORMAT) command-failed
COMMAND (exit code 1)
/home/mnachin/local/miniconda3/envs/executorch_docs/bin/clang-format
-style=file /data/users/mnachin/fbsource/fbcode/executorch/backends/apple/
coreml/runtime/util/objc_safe_cast.h
STDERR
/data/users/mnachin/fbsource/fbcode/executorch/backends/
apple/coreml/.clang-format:23:1: error: duplicated mapping key
'BreakBeforeBraces'
BreakBeforeBraces: Custom
^~~~~~~~~~~~~~~~~
Error reading /data/users/mnachin/fbsource/fbcode/executorch/backends/
apple/coreml/.clang-format: Invalid argument
STDOUT
(empty)
Summary: Pull Request resolved: pytorch#3041 We are updating to clang-formatter 18. The current clang-format in coreml code has duplicate key. Deleting one of them. Differential Revision: D56139927
This pull request was exported from Phabricator. Differential Revision: D56139927 |
fed1270
to
88d244f
Compare
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.
Thank you!
This pull request has been merged in 7c81155. |
Summary:
We are updating to clang-formatter 18.
The current clang-format in coreml code has duplicate key. Deleting one of them. It didn't complain in the old clang-formatter 12
Differential Revision: D56139927