File tree 8 files changed +15
-15
lines changed
8 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
- # This configuration should work with clang-format 6.0 and higher.
1
+ # This configuration should work with Clang-Format 6.0 and higher.
2
2
---
3
3
Language : Cpp
4
4
BasedOnStyle : LLVM
Original file line number Diff line number Diff line change 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.
2
2
f5795cdbc0703d80ab21f39c49bb2384ea2429ba
Original file line number Diff line number Diff line change @@ -58,10 +58,10 @@ Source code formatting is defined by `.clang-format` in the root directory. The
58
58
format is loosely based on [ LLVM's code formatting
59
59
style] ( https://llvm.org/docs/CodingStandards.html ) with some exceptions. It's
60
60
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
62
62
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.
65
65
66
66
Please follow these conventions:
67
67
Original file line number Diff line number Diff line change 1
- option (ENABLE_CPPCHECK "Enable static analysis with cppcheck " OFF )
1
+ option (ENABLE_CPPCHECK "Enable static analysis with Cppcheck " OFF )
2
2
if (ENABLE_CPPCHECK)
3
3
if (${CMAKE_VERSION} VERSION_LESS "3.10" )
4
- message (WARNING "CppCheck requires cmake 3.10" )
4
+ message (WARNING "Cppcheck requires CMake 3.10" )
5
5
else ()
6
6
find_program (CPPCHECK_EXE cppcheck)
7
7
mark_as_advanced (CPPCHECK_EXE) # Don't show in CMake UIs
@@ -18,21 +18,21 @@ if(ENABLE_CPPCHECK)
18
18
--template="cppcheck: warning: {id}:{file}:{line}: {message}"
19
19
-i src/third_party)
20
20
else ()
21
- message (WARNING "cppcheck requested but executable not found" )
21
+ message (WARNING "Cppcheck requested but executable not found" )
22
22
endif ()
23
23
endif ()
24
24
endif ()
25
25
26
- option (ENABLE_CLANG_TIDY "Enable static analysis with clang-tidy " OFF )
26
+ option (ENABLE_CLANG_TIDY "Enable static analysis with Clang-Tidy " OFF )
27
27
if (ENABLE_CLANG_TIDY)
28
28
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" )
30
30
else ()
31
31
find_program (CLANGTIDY clang-tidy)
32
32
if (CLANGTIDY)
33
33
set (CMAKE_CXX_CLANG_TIDY ${CLANGTIDY} )
34
34
else ()
35
- message (SEND_ERROR "clang-tidy requested but executable not found" )
35
+ message (SEND_ERROR "Clang-Tidy requested but executable not found" )
36
36
endif ()
37
37
endif ()
38
38
endif ()
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
138
138
standard_warnings "-Wno-unused-variable" )
139
139
endif ()
140
140
elseif (MSVC )
141
- # Remove any warning level flags added by cmake .
141
+ # Remove any warning level flags added by CMake .
142
142
string (REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS} " )
143
143
string (REGEX REPLACE "/W[0-4]" "" CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} " )
144
144
string (REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} " )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ for file in "$@"; do
43
43
44
44
if [ -n " $check " ]; then
45
45
status=1
46
- echo " Error: $file not formatted with clang-format "
46
+ echo " Error: $file not formatted with Clang-Format "
47
47
echo ' Run "make format" or apply this diff:'
48
48
git diff $cf_color --no-index " $file " " $tmp_file " \
49
49
| sed -r -e " s!^---.*!--- a/$file !" \
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ WarningsAsErrors: '*'
55
55
# Only include headers directly in src.
56
56
HeaderFilterRegex : ' src/[^/]*$'
57
57
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).
59
59
- key : readability-braces-around-statements.ShortStatementLines
60
60
value : 0
61
61
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WarningsAsErrors: '*'
4
4
# Only include headers directly in unittest.
5
5
HeaderFilterRegex : ' unittest/[^/]*$'
6
6
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).
8
8
- key : readability-braces-around-statements.ShortStatementLines
9
9
value : 0
10
10
You can’t perform that action at this time.
0 commit comments