]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix capitalization of CMake, Cppcheck, Clang-Format and Clang-Tidy
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 18 Sep 2020 07:28:14 +0000 (09:28 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 21 Sep 2020 18:43:15 +0000 (20:43 +0200)
.clang-format
.git-blame-ignore-revs
CONTRIBUTING.md
cmake/CodeAnalysis.cmake
cmake/StandardWarnings.cmake
misc/format-files
src/.clang-tidy
unittest/.clang-tidy

index 6b56d23af726959bba86470ca6a968bada3c01c7..f40eea449a4f67bd99f706a79912da500bbca4b4 100644 (file)
@@ -1,4 +1,4 @@
-# This configuration should work with clang-format 6.0 and higher.
+# This configuration should work with Clang-Format 6.0 and higher.
 ---
 Language: Cpp
 BasedOnStyle: LLVM
index c5b35299854ece1489da6aa175dc2bc205f0b8be..41568540d54316d456f80ddec7a54b54fcfd01bb 100644 (file)
@@ -1,2 +1,2 @@
-# Run clang-format on all code to follow the new code style
+# Run Clang-Format on all code to follow the new code style.
 f5795cdbc0703d80ab21f39c49bb2384ea2429ba
index 6831e02fa7e9522d59be8d591151839d9f258e15..361a660e73983d97adc80e06ccc1fe8571b68406 100644 (file)
@@ -58,10 +58,10 @@ Source code formatting is defined by `.clang-format` in the root directory. The
 format is loosely based on [LLVM's code formatting
 style](https://llvm.org/docs/CodingStandards.html) with some exceptions. It's
 highly recommended to install
-[clang-format](https://clang.llvm.org/docs/ClangFormat.html) 6.0 or newer and
+[Clang-Format](https://clang.llvm.org/docs/ClangFormat.html) 6.0 or newer and
 run `make format` to format changes according to ccache's code style. Or even
-better: set up your editor to run clang-format automatically when saving. If
-you don't run clang-format then the ccache authors have to do it for you.
+better: set up your editor to run Clang-Format automatically when saving. If
+you don't run Clang-Format then the ccache authors have to do it for you.
 
 Please follow these conventions:
 
index ae31cd90a5884b2af357c55488edb1a596f10f46..4e639a78629ed48e248dfba6ad57bacea1db317d 100644 (file)
@@ -1,7 +1,7 @@
-option(ENABLE_CPPCHECK "Enable static analysis with cppcheck" OFF)
+option(ENABLE_CPPCHECK "Enable static analysis with Cppcheck" OFF)
 if(ENABLE_CPPCHECK)
   if(${CMAKE_VERSION} VERSION_LESS "3.10")
-    message(WARNING "CppCheck requires cmake 3.10")
+    message(WARNING "Cppcheck requires CMake 3.10")
   else()
     find_program(CPPCHECK_EXE cppcheck)
     mark_as_advanced(CPPCHECK_EXE) # Don't show in CMake UIs
@@ -18,21 +18,21 @@ if(ENABLE_CPPCHECK)
           --template="cppcheck: warning: {id}:{file}:{line}: {message}"
           -i src/third_party)
     else()
-      message(WARNING "cppcheck requested but executable not found")
+      message(WARNING "Cppcheck requested but executable not found")
     endif()
   endif()
 endif()
 
-option(ENABLE_CLANG_TIDY "Enable static analysis with clang-tidy" OFF)
+option(ENABLE_CLANG_TIDY "Enable static analysis with Clang-Tidy" OFF)
 if(ENABLE_CLANG_TIDY)
   if(${CMAKE_VERSION} VERSION_LESS "3.6")
-    message(WARNING "clang-tidy requires cmake 3.6")
+    message(WARNING "Clang-Tidy requires CMake 3.6")
   else()
     find_program(CLANGTIDY clang-tidy)
     if(CLANGTIDY)
       set(CMAKE_CXX_CLANG_TIDY ${CLANGTIDY})
     else()
-      message(SEND_ERROR "clang-tidy requested but executable not found")
+      message(SEND_ERROR "Clang-Tidy requested but executable not found")
     endif()
   endif()
 endif()
index f879da0918542babe79dea3d10dd1a6ecee7dd46..dbb45f16d9be346ab1491fc298fb602a7083ef90 100644 (file)
@@ -138,7 +138,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
       standard_warnings "-Wno-unused-variable")
   endif()
 elseif(MSVC)
-  # Remove any warning level flags added by cmake.
+  # Remove any warning level flags added by CMake.
   string(REGEX REPLACE "/W[0-4]" "" CMAKE_C_FLAGS   "${CMAKE_C_FLAGS}")
   string(REGEX REPLACE "/W[0-4]" "" CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS}")
   string(REGEX REPLACE "/W[0-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
index d54978433fa948b85758254448c269c1c1ea674d..1c0405b1903de5cf8ca3f31aa9d833ea9cdb3a34 100755 (executable)
@@ -43,7 +43,7 @@ for file in "$@"; do
 
     if [ -n "$check" ]; then
         status=1
-        echo "Error: $file not formatted with clang-format"
+        echo "Error: $file not formatted with Clang-Format"
         echo 'Run "make format" or apply this diff:'
         git diff $cf_color --no-index "$file" "$tmp_file" \
             | sed -r -e "s!^---.*!--- a/$file!" \
index 3b8edba8e3de3a76b9f5d4da515ebf2a131bc281..5b05927dbcd37589256d1e15217d5a6dec25a2df 100644 (file)
@@ -55,7 +55,7 @@ WarningsAsErrors: '*'
 # Only include headers directly in src.
 HeaderFilterRegex: 'src/[^/]*$'
 CheckOptions:
-  # Always add braces (added here just in case clang-tidy default changes).
+  # Always add braces (added here just in case Clang-Tidy default changes).
   - key:             readability-braces-around-statements.ShortStatementLines
     value:           0
 
index 38b132b4186a2f3144f7c11a2c12d468aeb01e93..79cbdb273c4a7c45a68a75d230982ecbcfd5ba44 100644 (file)
@@ -4,7 +4,7 @@ WarningsAsErrors: '*'
 # Only include headers directly in unittest.
 HeaderFilterRegex: 'unittest/[^/]*$'
 CheckOptions:
-  # Always add braces (added here just in case clang-tidy default changes).
+  # Always add braces (added here just in case Clang-Tidy default changes).
   - key:             readability-braces-around-statements.ShortStatementLines
     value:           0