Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
dynare
Wiki
CodingGuidelines
Changes
Page history
New page
Templates
Clone repository
Bump to clang-format 16
authored
7 months ago
by
Sébastien Villemot
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CodingGuidelines.md
+217
-223
217 additions, 223 deletions
CodingGuidelines.md
with
217 additions
and
223 deletions
CodingGuidelines.md
View page @
33a86bc1
...
...
@@ -154,22 +154,16 @@ correct, and will fail otherwise. This means that you should run `clang-format`
locally before pushing any change to the C++ codebase.
Since the behaviour of
`clang-format`
varies slightly across versions, it is
necessary to stick to a specific version. We currently use version 1
5
of
necessary to stick to a specific version. We currently use version 1
6
of
`clang-format`
.
### Installing clang-format locally
Under Debian, use the
`clang-format-1
5
`
package. Make sure that the generic
Under Debian, use the
`clang-format-1
6
`
package. Make sure that the generic
`clang-format`
package is not installed, nor any more recent version of
`clang-format`
, otherwise selection of the correct binary may fail (see below).
Under MSYS2, the package
`mingw-w64-x86_64-clang-15`
provides the right
version of
`clang-format`
, under the
`/mingw64/opt/llvm-15/bin/`
directory.
That latter directory is not in the
`PATH`
by default, so it should probably be
added first in the
`PATH`
in order to make sure that it is used preferably to
others (untested).
Homebrew currently does not provide version 15 of
`clang-format`
.
MSYS2 and Homebrew currently do not provide version 16 of
`clang-format`
.
### Applying the style with Meson
...
...
This diff is collapsed.
Click to expand it.