Skip to content

Commit 04ebe30

Browse files
committed
Fix capitalization of CMake, Cppcheck, Clang-Format and Clang-Tidy
1 parent 4ef9757 commit 04ebe30

8 files changed

+15
-15
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This configuration should work with clang-format 6.0 and higher.
1+
# This configuration should work with Clang-Format 6.0 and higher.
22
---
33
Language: Cpp
44
BasedOnStyle: LLVM

.git-blame-ignore-revs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# Run clang-format on all code to follow the new code style
1+
# Run Clang-Format on all code to follow the new code style.
22
f5795cdbc0703d80ab21f39c49bb2384ea2429ba

CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ Source code formatting is defined by `.clang-format` in the root directory. The
5858
format is loosely based on [LLVM's code formatting
5959
style](https://llvm.org/docs/CodingStandards.html) with some exceptions. It's
6060
highly recommended to install
61-
[clang-format](https://clang.llvm.org/docs/ClangFormat.html) 6.0 or newer and
61+
[Clang-Format](https://clang.llvm.org/docs/ClangFormat.html) 6.0 or newer and
6262
run `make format` to format changes according to ccache's code style. Or even
63-
better: set up your editor to run clang-format automatically when saving. If
64-
you don't run clang-format then the ccache authors have to do it for you.
63+
better: set up your editor to run Clang-Format automatically when saving. If
64+
you don't run Clang-Format then the ccache authors have to do it for you.
6565

6666
Please follow these conventions:
6767

cmake/CodeAnalysis.cmake

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
option(ENABLE_CPPCHECK "Enable static analysis with cppcheck" OFF)
1+
option(ENABLE_CPPCHECK "Enable static analysis with Cppcheck" OFF)
22
if(ENABLE_CPPCHECK)
33
if(${CMAKE_VERSION} VERSION_LESS "3.10")
4-
message(WARNING "CppCheck requires cmake 3.10")
4+
message(WARNING "Cppcheck requires CMake 3.10")
55
else()
66
find_program(CPPCHECK_EXE cppcheck)
77
mark_as_advanced(CPPCHECK_EXE) # Don't show in CMake UIs
@@ -18,21 +18,21 @@ if(ENABLE_CPPCHECK)
1818
--template="cppcheck: warning: {id}:{file}:{line}: {message}"
1919
-i src/third_party)
2020
else()
21-
message(WARNING "cppcheck requested but executable not found")
21+
message(WARNING "Cppcheck requested but executable not found")
2222
endif()
2323
endif()
2424
endif()
2525

26-
option(ENABLE_CLANG_TIDY "Enable static analysis with clang-tidy" OFF)
26+
option(ENABLE_CLANG_TIDY "Enable static analysis with Clang-Tidy" OFF)
2727
if(ENABLE_CLANG_TIDY)
2828
if(${CMAKE_VERSION} VERSION_LESS "3.6")
29-
message(WARNING "clang-tidy requires cmake 3.6")
29+
message(WARNING "Clang-Tidy requires CMake 3.6")
3030
else()
3131
find_program(CLANGTIDY clang-tidy)
3232
if(CLANGTIDY)
3333
set(CMAKE_CXX_CLANG_TIDY ${CLANGTIDY})
3434
else()
35-
message(SEND_ERROR "clang-tidy requested but executable not found")
35+
message(SEND_ERROR "Clang-Tidy requested but executable not found")
3636
endif()
3737
endif()
3838
endif()

cmake/StandardWarnings.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
138138
standard_warnings "-Wno-unused-variable")
139139
endif()
140140
elseif(MSVC)
141-
# Remove any warning level flags added by cmake.
141+
# Remove any warning level flags added by CMake.
142142
string(REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
143143
string(REGEX REPLACE "/W[0-4]" "" CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS}")
144144
string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

misc/format-files

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for file in "$@"; do
4343

4444
if [ -n "$check" ]; then
4545
status=1
46-
echo "Error: $file not formatted with clang-format"
46+
echo "Error: $file not formatted with Clang-Format"
4747
echo 'Run "make format" or apply this diff:'
4848
git diff $cf_color --no-index "$file" "$tmp_file" \
4949
| sed -r -e "s!^---.*!--- a/$file!" \

src/.clang-tidy

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ WarningsAsErrors: '*'
5555
# Only include headers directly in src.
5656
HeaderFilterRegex: 'src/[^/]*$'
5757
CheckOptions:
58-
# Always add braces (added here just in case clang-tidy default changes).
58+
# Always add braces (added here just in case Clang-Tidy default changes).
5959
- key: readability-braces-around-statements.ShortStatementLines
6060
value: 0
6161

unittest/.clang-tidy

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WarningsAsErrors: '*'
44
# Only include headers directly in unittest.
55
HeaderFilterRegex: 'unittest/[^/]*$'
66
CheckOptions:
7-
# Always add braces (added here just in case clang-tidy default changes).
7+
# Always add braces (added here just in case Clang-Tidy default changes).
88
- key: readability-braces-around-statements.ShortStatementLines
99
value: 0
1010

0 commit comments

Comments
 (0)