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

[infra/cmd] Update format command #14601

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

hseok-oh
Copy link
Contributor

@hseok-oh hseok-oh commented Feb 3, 2025

This commit updates format command to skip C/C++ format checking by .clang-format in each directory,
It will not use .FORMATDENY file and manual setting in script any more.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh [email protected]


Draft: #14556

@hseok-oh hseok-oh added the PR/ready for review It is ready to review. Please review it. label Feb 3, 2025
Copy link
Contributor

@ys44kim ys44kim left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines -127 to -128
# Manually ignore style checking
FILES_TO_CHECK_CPP=`echo "$FILES_TO_CHECK_CPP" | egrep -v '((/NeuralNetworks\.h)|(/NeuralNetworksExtensions\.h))$'`
Copy link
Contributor

Choose a reason for hiding this comment

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

Q) are these related with .FORMATDENY ? or another format update ? (I assume we don't need to check these NeuralNetworks files)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are ignored by compiler/ann-api/include/.clang-format and tests/nnapi/bridge/include/.clang-format. I'll update commit comment.

This commit updates format command to skip C/C++ format checking by .clang-format in each directory,
It will not use .FORMATDENY file and manual setting in script any more.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
@hseok-oh hseok-oh force-pushed the update_format_checker branch from 35288e0 to c6fb71a Compare February 4, 2025 01:05
Copy link
Contributor

@seanshpark seanshpark left a comment

Choose a reason for hiding this comment

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

LGTM

@hseok-oh hseok-oh merged commit 0e58d40 into Samsung:master Feb 4, 2025
3 checks passed
@hseok-oh hseok-oh deleted the update_format_checker branch February 4, 2025 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR/ready for review It is ready to review. Please review it.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants