From 08a79a6207e3b246adf7b5d98d4c713898adeb3a Mon Sep 17 00:00:00 2001 From: Thom Troy Date: Wed, 5 Jul 2017 22:56:55 +0100 Subject: [PATCH] fix some typos and add missing link --- 04-static-analysis/README.adoc | 1 + 04-static-analysis/clang-format/README.adoc | 15 ++++----------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/04-static-analysis/README.adoc b/04-static-analysis/README.adoc index 9cb8900..b895728 100644 --- a/04-static-analysis/README.adoc +++ b/04-static-analysis/README.adoc @@ -25,3 +25,4 @@ The examples here include using the following tools: * http://cppcheck.sourceforge.net/[CppCheck] * https://clang-analyzer.llvm.org/[Clang Static Analyzer] +* https://clang.llvm.org/docs/ClangFormat.html[Clang Format] diff --git a/04-static-analysis/clang-format/README.adoc b/04-static-analysis/clang-format/README.adoc index 7161492..07a211c 100644 --- a/04-static-analysis/clang-format/README.adoc +++ b/04-static-analysis/clang-format/README.adoc @@ -32,10 +32,10 @@ $ tree ``` * link:CMakeLists.txt[] - Top level CMakeLists.txt - * link:.clang-format - The file describing the stype guide - * 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/scripts/clang-format-check-changed - A helper script to check against changed files in git + * link:.clang-format[] - The file describing the stype guide + * 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/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/main.cpp[] - source for a subproject with no errors * link:subproject2/CMakeLists.txt[] - CMake commands for subproject 2 @@ -75,13 +75,6 @@ AlignConsecutiveAssignments: 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 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