fix some typos and add missing link

This commit is contained in:
Thom Troy
2017-07-05 22:56:55 +01:00
parent b0e13d5bd8
commit 08a79a6207
2 changed files with 5 additions and 11 deletions

View File

@@ -25,3 +25,4 @@ The examples here include using the following tools:
* http://cppcheck.sourceforge.net/[CppCheck] * http://cppcheck.sourceforge.net/[CppCheck]
* https://clang-analyzer.llvm.org/[Clang Static Analyzer] * https://clang-analyzer.llvm.org/[Clang Static Analyzer]
* https://clang.llvm.org/docs/ClangFormat.html[Clang Format]

View File

@@ -32,10 +32,10 @@ $ tree
``` ```
* link:CMakeLists.txt[] - Top level CMakeLists.txt * link:CMakeLists.txt[] - Top level CMakeLists.txt
* link:.clang-format - The file describing the stype guide * link:.clang-format[] - The file describing the stype guide
* link:cmake/modules/FindClangFormat.cmake - Script to find the clang-format binary * link:cmake/modules/FindClangFormat.cmake[] - Script to find the clang-format binary
* link:cmake/modules/clang-format.cmake - Script to setup the format targets * link:cmake/modules/clang-format.cmake[] - Script to setup the format targets
* link:cmake/scripts/clang-format-check-changed - A helper script to check against changed files in git * link:cmake/scripts/clang-format-check-changed[] - A helper script to check against changed files in git
* link:subproject1/CMakeLists.txt[] - CMake commands for subproject 1 * link:subproject1/CMakeLists.txt[] - CMake commands for subproject 1
* link:subproject1/main.cpp[] - source for a subproject with no errors * link:subproject1/main.cpp[] - source for a subproject with no errors
* link:subproject2/CMakeLists.txt[] - CMake commands for subproject 2 * link:subproject2/CMakeLists.txt[] - CMake commands for subproject 2
@@ -75,13 +75,6 @@ AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false AlignConsecutiveDeclarations: false
---- ----
By default this will run the standard compiler for your platform, i.e. `gcc` on linux. However, if you want to override this you can change the command to:
[source,bash]
----
$ scan-build-3.6 --use-cc=clang-3.6 --use-c++=clang++-3.6 -o ./scanbuildout/ make
----
## format style ## format style
As mentioned, the style in this example is based on the +.clang-format+ file. This can be changed by editing link:cmake/modules/clang-format.cmake[clang-format.cmake] and changing As mentioned, the style in this example is based on the +.clang-format+ file. This can be changed by editing link:cmake/modules/clang-format.cmake[clang-format.cmake] and changing