-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_clang-format2
30 lines (27 loc) · 1.07 KB
/
_clang-format2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
# https://clang.llvm.org/docs/ClangFormat.html ,
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html ,
# --fallback-style=<string>
# - The name of the predefined style used as a
# fallback in case clang-format is invoked with
# -style=file, but can not find the .clang-format
# file to use. Defaults to 'LLVM'.
# Use -fallback-style=none to skip formatting.
# --style=<string>
# - Set coding style. <string> can be:
# 1. A preset: LLVM, GNU, Google, Chromium, Microsoft,
# Mozilla, WebKit.
# 2. 'file' to load style configuration from a
# .clang-format file in one of the parent directories
# of the source file (for stdin, see --assume-filename).
# If no .clang-format file is found, falls back to
# --fallback-style.
# --style=file is the default.
# 3. 'file:<format_file_path>' to explicitly specify
# the configuration file.
# 4. "{key: value, ...}" to set specific parameters, e.g.:
# --style="{BasedOnStyle: llvm, IndentWidth: 8}"
# Language: Cpp
# BasedOnStyle: LLVM
# SortIncludes: Never
...