mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
fix some typos and add missing link
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user