Comments (6)
I implemented this on my fork for java formatting:
AhmetBilgin@a5a6f09
from cppstyle.
Hello @AhmetBilgin, could you submit a PR to this project implementing this feature ? Would love to have it ! Thanks a lot.
from cppstyle.
Hi @julian-poidevin, I had to use another account to fork this project again. Can you test this? Seems to work for me.
https://github.com/Nosezeichen/CppStyle/tree/master/update/target/site
When it's ok I'll make a Pull-Request.
from cppstyle.
Hi @AhmetBilgin, thanks for taking the time to do this.
I've installed your modified version of the CppStyle extension and re-configured the path.
Unfortunately I don't see the project file being modified with the settings.
I'm using STM32CubeIDE, is your patch compatible with this modified version of Eclipse ? The project file has a .cproject
extension
Also, I see your patch allows to set clang-format path with an environment variable env_var
.
Would it work using Eclipse linked ressource as : ${PROJECT_LOC}
.
I'd like to directly put the clang-format
binary into a project folder so developers don't have to install LLVM and I'd like to set the clang-format
path in the project settings as : ${PROJECT_LOC}
/Utilities/clang-format.exe
Thanks a lot for your help on this !
from cppstyle.
Hi @julian-poidevin,
I don't know why I said that I implemented the 'project specific settings' part...
You are right, with my changes you are able to to use ${env_var:SOMETHING} in all 3 fields (clang-format, .clang-format style and cpplint). You can even use multiple semicolon ';' seperated paths. The first valid one will be used. But these settings are only available at workspace level right now.
- (A) I can have a look if I can implement this as project settings as well.
The environment variable resolving does currently only work for ${env_var:SOMETHING} and is resolved with System::getEnv and System::getproperty.
- (B) I can have a look at resolving against the eclipse predefined path variables. This will get a little bit trickier, because I cache the first valid path until the path changes in the settings or eclipse is restarted. This won't work if you want different settings for different projects in the same workspace.
Which solution (A, B) would help with your requirements?
from cppstyle.
Wow, that's very nice from you suggesting your help ! ๐๐ป
Actually, solution (B) could help a lot. I would just have to store clang-format
binary at the same place for all project.
Thanks a lot !
from cppstyle.
Related Issues (20)
- Cannot create a new Cpp file in Oxygen ecilpse HOT 1
- An internal error occurred during: "Organizing includes". HOT 6
- Cppstyle calls clang-format with `-fallback-style` command line parameter HOT 5
- Support c extension for cpplint.py HOT 3
- Compatibility with Neon? HOT 3
- Global prรฉfรฉrences not applied
- formatter not running when hitting Crtl+Shift+S or save all HOT 1
- clang-style
- Spyware HOT 3
- Unicode not handled properly when specifying -offset and -length HOT 1
- Characters are getting replaced by ? HOT 1
- ctrl-shift-f (format) vs ctrl-s (format on save) -- not same formatting HOT 3
- Ctrl-s not formatting file anymore HOT 1
- Format on save not run when using save on build
- The save button is disabled after a file was modified at the first time HOT 3
- relative path to clang format exe (clang-format path)
- Website cppstyle.com is down (offline) HOT 5
- Compiling the plugin failed HOT 9
- Plugin is no longer available in the Eclipse Marketplace HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cppstyle.