Top "Clang-format" questions

clang-format is a tool to format C/C++/Java/JavaScript/Objective-C/Protobuf code.

How can I install clang-format in Ubuntu?

I am trying to use clang-tools in particular clang-format for automatic code formatting in vim but I couldn't find this …

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

Is there a way to call something like clang-format --style=Webkit for an entire cpp project folder, rather than running …

c++ clang clang-format
how to make clang-format add new line before opening brace of a function?

I'm interested in putting an opening brace for functions (but not if statements and other contexts). For example void foo() { ... } …

coding-style clang clang-format
Where are clang-format and clang-format.py in Mac OS X with Xcode Command Line Tools installed?

I am having a hard time finding clang-format and clang-format.py on my Mac OS 10.8.5 with Xcode 5 and its Command …

c++ macos clang clang-format
Can clang-format tell me if formatting changes are necessary?

Is there an way that you can run clang-format in a mode where it reports if the file meets the …

git clang-format
Using clang-format in CLion

I'd like to format my code using clang-format in CLion. I've gone through the settings and haven't found any setting …

c++ clang clion clang-format
How do I specify a clang-format file?

I just built clang 5.0.0 on a Redhat 6 machine and tried to run clang-format. I'm unable to get the -style option …

c++ clang llvm llvm-clang clang-format
Clang-format line breaks

I'm looking for a clang-format setting to prevent the tool from removing line breaks. For example, I have my ColumnLimit …

c++ clang code-formatting clang-format
How to feed Visual Studio Clang-Format plugin with clang-format file?

So I downloaded, installed, and inserted into path the clang formatting plugin. I also tested it and it works for …

c++ visual-studio clang clang-format
Why are my Xcode plugins (such as clang format) installed with Alcatraz no longer working after updating to new version of Xcode?

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. …

ios iphone xcode updates clang-format