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

save action for CDT #86

Open
alef75 opened this issue Oct 5, 2022 · 3 comments
Open

save action for CDT #86

alef75 opened this issue Oct 5, 2022 · 3 comments
Labels
editor The CDT C/C++, Assembly, Makefile and other editors provided by CDT

Comments

@alef75
Copy link

alef75 commented Oct 5, 2022

It could be very useful to have a save action in CDT in order to call external tool or scripts to process saved files.
In our case we need to apply clang-format to our C/C++ code base.
Currently we are using the CppStyle eclipse plugin, but it has the problem that it doesn't work when saving multiple file (save all).
it works only with save single file

@jonahgraham
Copy link
Member

I don't know how CppSytle hooks into CDT, but I guess however it does needs to be extended (on CDT side or on CppStyle side) to connect to the Save All as well. Do you have any idea how to do that?

@jonahgraham jonahgraham added the editor The CDT C/C++, Assembly, Makefile and other editors provided by CDT label Oct 5, 2022
@jonahgraham jonahgraham changed the title save acttion for CDT save action for CDT Oct 5, 2022
@alef75
Copy link
Author

alef75 commented Oct 5, 2022

Cpp style does not work also with "Save automatically before build"

@alef75
Copy link
Author

alef75 commented Oct 5, 2022

In general I think, CDT should have an open interface ready for the users to use external tools as code formatters, code linters etch.
In these days of CI/CD is useful to use standard tools (the same used in the pipeline) also in the developer machines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor The CDT C/C++, Assembly, Makefile and other editors provided by CDT
Projects
None yet
Development

No branches or pull requests

2 participants