Document clang11 in developer docs
authorejjordan <ejjordan@kth.se>
Tue, 26 Oct 2021 14:38:47 +0000 (16:38 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Tue, 26 Oct 2021 15:05:38 +0000 (15:05 +0000)
Instead of the no longer used clang7.

Fixes #4173

docs/dev-manual/code-formatting.rst

index 7c93dbe2c9deec2c6d04645bbbd7c17855f2864b..e9718541d15179b3b6c6e95e7e4893007a184eab 100644 (file)
@@ -22,15 +22,15 @@ the code stays invariant under such formatting.
 Setting up clang-format
 -----------------------
 
-|Gromacs| formatting is enforced with clang-format 7.0.1.
+|Gromacs| formatting is enforced with clang-format 11.0.1.
 :command:`clang-format` is one of the core *clang* tools.
 It may be included in a *clang* or *llvm* package from your favorite packaging
 system or you may find a standalone *clang-format* package,
-but you should confirm that the provided command is version 7.0.1 or
-7.1.0. Example::
+but you should confirm that the provided command is version 11.0.0 or 11.0.1.
+Example::
 
     $ clang-format --version
-    clang-format version 7.1.0 (tags/RELEASE_710/final)
+    clang-format version 11.0.0
 
 If you use a different version of clang-format,
 you will likely get different formatting results than
@@ -39,12 +39,12 @@ and the commits that you push will fail the automated tests.
 
 .. note::
 
-    Refer to `LLVM <http://releases.llvm.org/download.html#7.1.0>`__ for
+    Refer to `LLVM <http://releases.llvm.org/download.html#11.0.0>`__ for
     source and binary downloads.
     If downloading sources, note that you will need to download both the
     *LLVM source code* and the *Clang source code*.
     As per the clang
-    `INSTALL.txt <https://github.com/llvm/llvm-project/blob/release/7.x/clang/INSTALL.txt>`__,
+    `INSTALL.txt <https://github.com/llvm/llvm-project/blob/release/11.x/clang/INSTALL.txt>`__,
     place the expanded clang source into a :file:`tools/clang` subdirectory within
     the expanded llvm archive, then run CMake against the llvm source directory.
 
@@ -70,7 +70,7 @@ clang-format discovers which formatting rules to apply from the
 which will be automatically updated (if necessary) when you :command:`git pull`
 from the |Gromacs| repository.
 For more about the tool and the :file:`.clang-format` configuration file,
-visit https://releases.llvm.org/7.0.1/tools/clang/docs/ClangFormat.html
+visit https://releases.llvm.org/11.0.1/tools/clang/docs/ClangFormat.html
 
 What is automatically formatted?
 --------------------------------