Comments (6)
Original K&R + adding tabs to spaces is the way to go with my rules written here.
from c-code-style.
Do you mean the Original K&R has the same naming rules as you described like having all lowercase letters for example? If yes, then there is no option in AStyle or Eclipse's Formatter to re-format them I guess? If yes, do you have any suggestions on that? We have a couple of libraries provided by different manufacturers and we want to use the same formatting on them.
from c-code-style.
K&R does not have naming rules and it won't change variable name or declaration order as per my style.
So it means that you cannot 100% automate your code with AStyle, some things would need to be properly written manually.
from c-code-style.
the style is a convention for code maintaining, consistency is paramount. and if this convention harm your code maintaining then relinquish it.
from c-code-style.
from c-code-style.
It is not advised to use astyle anymore. Clang-format is preferred way.
from c-code-style.
Related Issues (6)
- C code style
- May be we need a .clang-format HOT 6
- License Please HOT 2
- General Thoughts HOT 1
- Document mistake HOT 1
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 c-code-style.