spelling fixes

This commit is contained in:
Karl Nilsson
2020-01-17 19:48:14 -05:00
parent 4c671bdbee
commit f1f7c85d95
20 changed files with 29 additions and 29 deletions

View File

@@ -84,7 +84,7 @@ $ tree
1 directory, 4 files
----
By defaut these are output to +/tmp/scanbuildout/{run folder}+. You can change this using `scan-build -o /output/folder`.
By default these are output to +/tmp/scanbuildout/{run folder}+. You can change this using `scan-build -o /output/folder`.
# Building the example

View File

@@ -50,7 +50,7 @@ foreach(EXCLUDE_PATTERN ${CLANG_FORMAT_EXCLUDE_PATTERNS})
list(APPEND EXCLUDE_PATTERN_ARGS "--exclude=${EXCLUDE_PATTERN}")
endforeach()
# call the script to chech changed files in git
# call the script to check changed files in git
add_custom_target(format-check-changed
COMMENT "Checking changed files in git"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}

View File

@@ -142,7 +142,7 @@ def cli():
description='Checks if files chagned in git match the .clang-format specification')
parser.add_argument("--file-extensions", type=str,
default=".cpp,.h,.cxx,.hxx,.hpp,.cc,.ipp",
help="Comma seperated list of file extensions to check")
help="Comma separated list of file extensions to check")
parser.add_argument('--exclude', action='append', default=[],
help='Will not match the files / directories with these in the name')
parser.add_argument('--clang-format-bin', type=str, default="clang-format",

View File

@@ -61,7 +61,7 @@ $ wget https://github.com/danmar/cppcheck/archive/1.79.tar.gz \
## Adding Custom Package Modules
As with the previous example I use a custom module to find CppCheck. This version is slightly different to the pervious one and
As with the previous example I use a custom module to find CppCheck. This version is slightly different to the previous one and
will automatically add a `make cppcheck-analysis` target.
[source,cmake]

View File

@@ -41,7 +41,7 @@ if(CPPCHECK_BIN)
set(CPPCHECK_THREADS_ARG "-j4" CACHE STRING "The number of threads to use")
set(CPPCHECK_PROJECT_ARG "--project=${PROJECT_BINARY_DIR}/compile_commands.json")
set(CPPCHECK_BUILD_DIR_ARG "--cppcheck-build-dir=${PROJECT_BINARY_DIR}/analysis/cppcheck" CACHE STRING "The build directory to use")
# Don't show thise errors
# Don't show these errors
if(EXISTS "${CMAKE_SOURCE_DIR}/.cppcheck_suppressions")
set(CPPCHECK_SUPPRESSIONS "--suppressions-list=${CMAKE_SOURCE_DIR}/.cppcheck_suppressions" CACHE STRING "The suppressions file to use")
else()

View File

@@ -23,7 +23,7 @@ macro(add_analysis _target _sources)
set(ALL_ANALYSIS_TARGETS "${ALL_ANALYSIS_TARGETS}" PARENT_SCOPE)
# This is used to make the command run correctly on the command line.
# The COMMAND argumetn expects a list and this does the change
# The COMMAND argument expects a list and this does the change
# I need to check which version works with 2.7
if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VESION} GREATER 2.7)
separate_arguments(tmp_args UNIX_COMMAND ${CPPCHECK_ARG})

View File

@@ -12,11 +12,11 @@
find_program(CPPCHECK_BIN NAMES cppcheck)
#
# Arugments are
# Arguments are
# -j use multiple threads (and thread count)
# --quite only show errors / warnings etc
# --error-exitcode The code to exit with if an error shows up
# --enabled Comman seperated list of the check types. Can include warning,performance,style
# --enabled Comma separated list of the check types. Can include warning,performance,style
# Note nightly build on earth changes error-exitcode to 0
set (CPPCHECK_THREADS "-j 4" CACHE STRING "The -j argument to have cppcheck use multiple threads / cores")
@@ -34,4 +34,4 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(
mark_as_advanced(
CPPCHECK_BIN
CPPCHECK_THREADS
CPPCHECK_ARG)
CPPCHECK_ARG)