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

feat(formatter): clang-format update #96

Merged
merged 2 commits into from
Jan 15, 2020
Merged

Conversation

ouuan
Copy link
Member

@ouuan ouuan commented Jan 14, 2020

  1. Set clang-format binary instead of set format command.

  2. Use --cursor argument to keep the cursor after formatting.

  3. Format selection only if there is a selection.

  4. Set format style in preference window.

  5. Add format on save option.

  6. Open temporary file for formatting when necessary instead of holding it.

  7. Other text changes and minor changes.

  8. Modify README.md for these changes.

This closes #81 .

@caretaker-claire
Copy link

Hi ouuan
Thank you for your contribution to cp-editor. I will request a review from one of the contributor. Once they approves and all CI checks passes, I will merge your Pull Request.

@ouuan ouuan force-pushed the clang-format branch 2 times, most recently from 4727241 to f411dba Compare January 14, 2020 08:23
1. Set clang-format binary instead of set format command.

2. Use `--cursor` argument to keep the cursor after formatting.

3. Format selection only if there is a selection.

4. Set format style in preference window.

5. Add format on save option.

6. Open temporary file for formatting when necessary instead of holding it.

7. Other text changes and minor changes.

8. Modify README.md for these changes.
@ouuan
Copy link
Member Author

ouuan commented Jan 14, 2020

BTW, I think the next release should be 5.1.0 instead of 5.0.2 if it includes this PR.

@coder3101
Copy link
Member

I will review this and merge it tomorrow. It will surely be 5.1 is this releases

@coder3101
Copy link
Member

This certainly was a lot of work. Glad for having such contributors. :)

@coder3101 coder3101 merged commit e5c7848 into cpeditor:master Jan 15, 2020
@ouuan ouuan deleted the clang-format branch January 15, 2020 04:05
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

Successfully merging this pull request may close these issues.

Setting for clang-format
2 participants