Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
46536729
Commit
46536729
authored
Dec 28, 2020
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump clang-format to 10
parent
563c1173
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
doc/sources/contribute.rst
doc/sources/contribute.rst
+4
-4
No files found.
doc/sources/contribute.rst
View file @
46536729
...
@@ -26,16 +26,16 @@ Coding style
...
@@ -26,16 +26,16 @@ 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-
9
.
between versions, we currently use clang-format-
10
.
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-9
your PATH or it exists under different name (e.g.,
in debian), either add it to PATH variable or add git option
clang-format-diff-10 in debian), either add it to PATH variable or add
``clangformatdiff.binary`` to point to the script.
git option
``clangformatdiff.binary`` to point to the script.
For emacs users, integrating clang-format to emacs is very easy.
For emacs users, integrating clang-format to emacs is very easy.
clang-format.el should come with clang distribution. If it is not
clang-format.el should come with clang distribution. If it is not
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment