FAQ Database Discussion Community

How to call clang-format over a cpp project folder?

Is there a way to call something like this "clang-format --style=Webkit" over the cpp project folder rather than running it separately inside each code? I am using the clang-format.py and vim to do this. But I assume there is an easier way to apply this once....

Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to Xcode 6.3.2?

Today I updated to Xcode 6.3.2 and I can't run the Clang code formatting – it seems like it's not even installed. Everytime I update Xcode, I have to reinstall Alcatraz and most of the packages (why btw?) to make them work on the new version of Xcode. This time...

How can I tell clang-format to follow this convention?

I would like to have this: if (!enabled) { return; } turned to this: if (!enabled) { return; } (In other words, I want short if-statements on a single line but keep the {} around them) Currently I'm using the following configuration: AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true AllowShortCaseLabelsOnASingleLine: true AllowShortFunctionsOnASingleLine: true...