]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix capitalization of Clang
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 24 May 2020 08:47:46 +0000 (10:47 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 24 May 2020 18:49:09 +0000 (20:49 +0200)
doc/MANUAL.adoc
src/ArgsInfo.hpp
src/compopt.cpp
src/hashutil.cpp

index b2ac1d4e9e0614323a434effcf4f60adbc840117..5b20df4a94c6520c690410bebfd5a3b9c78bae1f 100644 (file)
@@ -1271,9 +1271,9 @@ Caveats
 * If ccache guesses that the compiler may emit colored warnings, then a
   compilation with stderr referring to a TTY will be considered different from
   a compilation with a redirected stderr, thus not sharing cache entries. This
-  happens for clang by default and for GCC when *GCC_COLORS* is set as
+  happens for Clang by default and for GCC when *GCC_COLORS* is set as
   mentioned above. If you want to share cache hits, you can pass
-  `-f[no-]diagnostics-color` (GCC) or `-f[no-]color-diagnostics` (clang)
+  `-f[no-]diagnostics-color` (GCC) or `-f[no-]color-diagnostics` (Clang)
   explicitly when compiling (but then color codes will be either on or off for
   both the TTY and the redirected case).
 
index bbc1ce57f1c08279d25d517998faedb7321b81e2..26cd41abd3efd568b2d04a90b358e48fa1b77021 100644 (file)
@@ -43,7 +43,7 @@ struct ArgsInfo
   // The path to the stack usage (implicit when using -fstack-usage).
   std::string output_su;
 
-  // Diagnostic generation information (clang). Contains pathname if not empty.
+  // Diagnostic generation information (Clang). Contains pathname if not empty.
   std::string output_dia;
 
   // Split dwarf information (GCC 4.8 and up). Contains pathname if not empty.
@@ -88,7 +88,7 @@ struct ArgsInfo
   bool profile_generate = false;
 
   // Whether we are using a precompiled header (either via -include, #include or
-  // clang's -include-pch or -include-pth).
+  // Clang's -include-pch or -include-pth).
   bool using_precompiled_header = false;
 
   // Files referenced by -fsanitize-blacklist options.
index 7735f883588f7d3e2fd3b98cb788dfe7d692e9f8..7b8df8d68529efd39f8ddf8734c87e326ad2b1b6 100644 (file)
@@ -50,7 +50,7 @@ struct compopt
 };
 
 static const struct compopt compopts[] = {
-  {"--analyze", TOO_HARD},                            // clang
+  {"--analyze", TOO_HARD},                            // Clang
   {"--compiler-bindir", AFFECTS_CPP | TAKES_ARG},     // nvcc
   {"--libdevice-directory", AFFECTS_CPP | TAKES_ARG}, // nvcc
   {"--output-directory", AFFECTS_CPP | TAKES_ARG},    // nvcc
@@ -85,7 +85,7 @@ static const struct compopt compopts[] = {
   {"-Xlinker", TAKES_ARG | TAKES_CONCAT_ARG | AFFECTS_COMP},
   {"-Xpreprocessor", AFFECTS_CPP | TOO_HARD_DIRECT | TAKES_ARG},
   {"-all_load", AFFECTS_COMP},
-  {"-analyze", TOO_HARD}, // clang
+  {"-analyze", TOO_HARD}, // Clang
   {"-arch", TAKES_ARG},
   {"-aux-info", TAKES_ARG},
   {"-b", TAKES_ARG},
@@ -95,7 +95,7 @@ static const struct compopt compopts[] = {
   {"-fno-working-directory", AFFECTS_CPP},
   {"-fplugin=libcc1plugin", TOO_HARD}, // interaction with GDB
   {"-frepo", TOO_HARD},
-  {"-ftime-trace", TOO_HARD}, // clang
+  {"-ftime-trace", TOO_HARD}, // Clang
   {"-fworking-directory", AFFECTS_CPP},
   {"-gtoggle", TOO_HARD},
   {"-idirafter", AFFECTS_CPP | TAKES_ARG | TAKES_CONCAT_ARG | TAKES_PATH},
index a649a5f9744e75feb8617eeae9cfe991608c9c25..246d5236fc6a58a0c545415c48f6235da7f5277a 100644 (file)
@@ -38,7 +38,7 @@
 // as of 3.9 (see https://bugs.llvm.org/show_bug.cgi?id=25510). But if libgcc
 // is used we have the same problem as mentioned above. Unfortunately there
 // doesn't seem to be a way to detect which one is used, or the version of
-// libgcc when used by clang, so assume that it works with Clang >= 3.9.
+// libgcc when used by Clang, so assume that it works with Clang >= 3.9.
 #if !(__GNUC__ >= 8 || (__GNUC__ == 7 && __GNUC_MINOR__ >= 4)                  \
       || (__GNUC__ == 6 && __GNUC_MINOR__ >= 5) || __clang_major__ > 3         \
       || (__clang_major__ == 3 && __clang_minor__ >= 9))