haaakon / apple-clang-format Goto Github PK
View Code? Open in Web Editor NEWA .clang-format file as similar as you can get to Apples code style.
A .clang-format file as similar as you can get to Apples code style.
Is it possible to have modified files automatically formatted before committing them to source control? Or preferably when selecting commit from the source control menu, so the diffs in the commit window are correct.
The way it is now I have to remember to manually select formatting from the menu, or press Command-S.
Since clang-format supports both ".clang-format" and "_clang-format" file names, wouldn't be better to use the latter? That's because ".clang-format" will be, by default, hidden in both Finder and Terminal, so will be harder to find. Additionally, I think it's more explicit to see, near a project file, a visible "format" file.
before format
typedef struct
{
int magic1;
int magic2;
uint32_t operation;
uint32_t param1;
uint32_t param2;
uint32_t payloadLength;
} UdpMsg;
after format
typedef struct
{
int magic1;
int magic2;
uint32_t operation;
uint32_t param1;
uint32_t param2;
uint32_t payloadLength;
} UdpMsg;
I think {
should not be changed in this case , any suggestions ?
:D
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.