Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: c++/clang-format/README.md

Issue 29537634: Noissue - clang-format configuration file for C++
Patch Set: address comments Created Sept. 8, 2017, 3:47 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | c++/clang-format/clang-format-eyeo » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: c++/clang-format/README.md
===================================================================
new file mode 100644
--- /dev/null
+++ b/c++/clang-format/README.md
@@ -0,0 +1,27 @@
+clang-format-eyeo
+=================
+
+A file containing style configuration for [`clang-format`](http://clang.llvm.org/docs/ClangFormat.html)
Vasily Kuznetsov 2017/09/11 10:44:33 We are generally trying to keep the lines under 80
Eric 2017/09/15 13:09:01 Fixed in patch set 3.
+that formats according to the [Adblock Plus coding style guide](https://adblockplus.org/coding-style#cpp)
+for C++.
+
+Installation
+------------
+
+When `clang-format` receives its style configuration from a file, it searches
+for style configuration in the directory of each input file and then each parent
+directory. Copy the format file to the parent directory of the working
+directory. In this way it will `clang-format` will find the format file and
+the version control system will not.
+
+The configuration file must be named either "`.clang-format`" or "`_clang-format`".
+At the present time there's no command line option to specify the file name.
+
+Usage
+-----
+
+ clang-format -style=file [...]
+
+The option "-style=file" (note that this is the word "file", not a file name)
+says to perform a directory search for the configuration. For the rest of the
+command line, see the `clang-format` documentation link above.
« no previous file with comments | « no previous file | c++/clang-format/clang-format-eyeo » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld