Skip to content

Commit

Permalink
fix some typos and add missing link
Browse files Browse the repository at this point in the history
  • Loading branch information
ttroy50 committed Jul 5, 2017
1 parent b0e13d5 commit 08a79a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions 04-static-analysis/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
15 changes: 4 additions & 11 deletions 04-static-analysis/clang-format/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 08a79a6

Please sign in to comment.