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

Apply some additional formating on the result of clang-format #155

Open
dvsorokin opened this issue Sep 29, 2023 · 0 comments
Open

Apply some additional formating on the result of clang-format #155

dvsorokin opened this issue Sep 29, 2023 · 0 comments

Comments

@dvsorokin
Copy link

According to our guidelines, we need to place "(" on the newline if nothing follows it. AFAIK, clang-format does not allow it. So I'd like to run some sed over the result of clang-format. Smth like:

clang-format -i -style=file your_source_file.cpp && cat your_source_file.cpp | sed 's/(\s*$/(\n\n/g' > formatted_output_file.cpp

Is it possible to somehow configure the Executable to process the result of the clang-format as avove? E.g., put this command to a bash script and call it?

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

No branches or pull requests

1 participant