Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 clang-format-eyeo | |
2 ================= | |
3 | |
4 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.
| |
5 that formats according to the [Adblock Plus coding style guide](https://adblockp lus.org/coding-style#cpp) | |
6 for C++. | |
7 | |
8 Installation | |
9 ------------ | |
10 | |
11 When `clang-format` receives its style configuration from a file, it searches | |
12 for style configuration in the directory of each input file and then each parent | |
13 directory. Copy the format file to the parent directory of the working | |
14 directory. In this way it will `clang-format` will find the format file and | |
15 the version control system will not. | |
16 | |
17 The configuration file must be named either "`.clang-format`" or "`_clang-format `". | |
18 At the present time there's no command line option to specify the file name. | |
19 | |
20 Usage | |
21 ----- | |
22 | |
23 clang-format -style=file [...] | |
24 | |
25 The option "-style=file" (note that this is the word "file", not a file name) | |
26 says to perform a directory search for the configuration. For the rest of the | |
27 command line, see the `clang-format` documentation link above. | |
OLD | NEW |