clang-format-8
This commit is contained in:
parent
97ce392bcc
commit
2e1975ddf6
|
@ -111,6 +111,9 @@ SpacesInCStyleCastParentheses: false
|
||||||
SpacesInParentheses: false
|
SpacesInParentheses: false
|
||||||
SpacesInSquareBrackets: false
|
SpacesInSquareBrackets: false
|
||||||
Standard: Cpp11
|
Standard: Cpp11
|
||||||
|
StatementMacros:
|
||||||
|
- Q_UNUSED
|
||||||
|
- QT_REQUIRE_VERSION
|
||||||
TabWidth: 8
|
TabWidth: 8
|
||||||
UseTab: Never
|
UseTab: Never
|
||||||
...
|
...
|
||||||
|
|
|
@ -26,14 +26,14 @@ Coding style
|
||||||
We use clang-format to format source code consistently. The
|
We use clang-format to format source code consistently. The
|
||||||
clang-format configuration file .clang-format is located at the root
|
clang-format configuration file .clang-format is located at the root
|
||||||
directory. Since clang-format produces slightly different results
|
directory. Since clang-format produces slightly different results
|
||||||
between versions, we currently use clang-format-7.
|
between versions, we currently use clang-format-8.
|
||||||
|
|
||||||
To detect any violation to the coding style, we recommend to setup git
|
To detect any violation to the coding style, we recommend to setup git
|
||||||
pre-commit hook to check coding style of the changes you introduced.
|
pre-commit hook to check coding style of the changes you introduced.
|
||||||
The pre-commit file is located at the root directory. Copy it under
|
The pre-commit file is located at the root directory. Copy it under
|
||||||
.git/hooks and make sure that it is executable. The pre-commit script
|
.git/hooks and make sure that it is executable. The pre-commit script
|
||||||
uses clang-format-diff.py to detect any style errors. If it is not in
|
uses clang-format-diff.py to detect any style errors. If it is not in
|
||||||
your PATH or it exists under different name (e.g., clang-format-diff-7
|
your PATH or it exists under different name (e.g., clang-format-diff-8
|
||||||
in debian), either add it to PATH variable or add git option
|
in debian), either add it to PATH variable or add git option
|
||||||
``clangformatdiff.binary`` to point to the script.
|
``clangformatdiff.binary`` to point to the script.
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,8 @@ MemcachedConnection::MemcachedConnection(const Address *addr,
|
||||||
do_read_(&MemcachedConnection::noop),
|
do_read_(&MemcachedConnection::noop),
|
||||||
do_write_(&MemcachedConnection::noop),
|
do_write_(&MemcachedConnection::noop),
|
||||||
sni_name_(sni_name),
|
sni_name_(sni_name),
|
||||||
connect_blocker_(gen, loop, [] {}, [] {}),
|
connect_blocker_(
|
||||||
|
gen, loop, [] {}, [] {}),
|
||||||
parse_state_{},
|
parse_state_{},
|
||||||
addr_(addr),
|
addr_(addr),
|
||||||
ssl_ctx_(ssl_ctx),
|
ssl_ctx_(ssl_ctx),
|
||||||
|
|
Loading…
Reference in New Issue