]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fix spelling (#345)
authorJosh Soref <jsoref@users.noreply.github.com>
Mon, 7 Jan 2019 15:40:38 +0000 (10:40 -0500)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 7 Jan 2019 15:40:38 +0000 (16:40 +0100)
src/ccache.c
src/compopt.c
src/conf.c
unittest/test_argument_processing.c
unittest/test_compopt.c

index a7ee69aa0ce04d28541f499ca4b9fb4a3914a405..4a308a324d8faf4632df969ab874e6df1bc93561 100644 (file)
@@ -2915,7 +2915,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                    && str_eq(argv[i], "-index-store-path")) {
                        // Xcode 9 or later calls Clang with this option. The given path includes
                        // a UUID that might lead to cache misses, especially when cache is
-                       // shared among multple users.
+                       // shared among multiple users.
                        i++;
                        if (i <= argc - 1) {
                                cc_log("Skipping argument -index-store-path %s", argv[i]);
@@ -3304,7 +3304,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
                args_add(*compiler_args, arch_args[i]);
        }
 
-       // Only pass dependency arguments to the preprocesor since Intel's C++
+       // Only pass dependency arguments to the preprocessor since Intel's C++
        // compiler doesn't produce a correct .d file when compiling preprocessed
        // source.
        args_extend(cpp_args, dep_args);
index cb67d7a73f4ff141a1ea844761e0a484f539305a..dbf32f0cdfc2a76b8d5a5df61fcd9482992c9a9d 100644 (file)
@@ -208,7 +208,7 @@ compopt_takes_concat_arg(const char *option)
 bool
 compopt_prefix_affects_cpp(const char *option)
 {
-       // Prefix options have to take concatentated args.
+       // Prefix options have to take concatenated args.
        const struct compopt *co = find_prefix(option);
        return co && (co->type & TAKES_CONCAT_ARG) && (co->type & AFFECTS_CPP);
 }
index 61b76d4800fe7b3a41f27684b65c2ffce5d3f348..4c7d35df34c9b4ece15dd00bcf2d867cfcc3d9d6 100644 (file)
@@ -187,7 +187,7 @@ conf_free(struct conf *conf)
 
 // Note: The path pointer is stored in conf, so path must outlive conf.
 //
-// On failure, if an I/O error occured errno is set approriately, otherwise
+// On failure, if an I/O error occured errno is set appropriately, otherwise
 // errno is set to zero indicating that config itself was invalid.
 bool
 conf_read(struct conf *conf, const char *path, char **errmsg)
index 319c833cd6474021a73f0512d39b0c3c13391643..8d40a511f5203e8b654e717856019ae1670ee7ec 100644 (file)
@@ -366,7 +366,7 @@ TEST(fprofile_flag_with_existing_dir_should_be_rewritten_to_real_path)
        args_free(orig);
 }
 
-TEST(fprofile_flag_with_nonexisting_dir_should_not_be_rewritten)
+TEST(fprofile_flag_with_nonexistent_dir_should_not_be_rewritten)
 {
        struct args *orig = args_init_from_string(
                "gcc -c -fprofile-generate=some/dir foo.c");
index 263e649706f6f21764f604fc603799a80b384b3f..94dc2dd491f1d1d1abb9c9300cfd61ae4fd31619 100644 (file)
@@ -45,7 +45,7 @@ TEST(dash_V_doesnt_affect_cpp)
        CHECK(!compopt_affects_cpp("-V"));
 }
 
-TEST(dash_doesnexist_doesnt_affect_cpp)
+TEST(dash_doesntexist_doesnt_affect_cpp)
 {
        CHECK(!compopt_affects_cpp("-doesntexist"));
 }
@@ -90,7 +90,7 @@ TEST(dash_fstack_usage_not_too_hard)
        CHECK(!compopt_too_hard("-fstack-usage"));
 }
 
-TEST(dash_doesnexist_not_too_hard)
+TEST(dash_doesntexist_not_too_hard)
 {
        CHECK(!compopt_too_hard("-doesntexist"));
 }