diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy')
8 files changed, 9 insertions, 9 deletions
diff --git a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc-custom.cpp b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc-custom.cpp index 89142fbd513..ebf37fa3599 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc-custom.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc-custom.cpp @@ -54,6 +54,6 @@ void arbitrary_call() { // we dont want every function to raise the warning even if malloc is in the name malloced_array(); // OK(2) - // completly unrelated function call to malloc + // completely unrelated function call to malloc newed_array(); // OK(3) } diff --git a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc.cpp b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc.cpp index 7b7ccf3b05e..ccbe0efa996 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-no-malloc.cpp @@ -37,6 +37,6 @@ void arbitrary_call() { // we dont want every function to raise the warning even if malloc is in the name malloced_array(); // OK(2) - // completly unrelated function call to malloc + // completely unrelated function call to malloc newed_array(); // OK(3) } diff --git a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-owning-memory-containers.cpp b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-owning-memory-containers.cpp index d39e697c6bd..d7650b1c87f 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-owning-memory-containers.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-owning-memory-containers.cpp @@ -29,7 +29,7 @@ private: } // namespace std -// All of the following codesnippets should be valid with appropriate 'owner<>' anaylsis, +// All of the following codesnippets should be valid with appropriate 'owner<>' analysis, // but currently the type information of 'gsl::owner<>' gets lost in typededuction. int main() { std::vector<gsl::owner<int *>> OwnerStdVector(100, nullptr); diff --git a/clang-tools-extra/test/clang-tidy/checkers/modernize-make-unique.cpp b/clang-tools-extra/test/clang-tidy/checkers/modernize-make-unique.cpp index 4cc195dabdd..35a6dd0b7d0 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/modernize-make-unique.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/modernize-make-unique.cpp @@ -451,7 +451,7 @@ void initialization(int T, Base b) { // CHECK-FIXES: FI = std::make_unique<int[]>(5); // The check doesn't give warnings and fixes for cases where the original new - // expresion doesn't do any initialization. + // expression doesn't do any initialization. FI.reset(new int[5]); FI.reset(new int[Num]); FI.reset(new int[Num2]); diff --git a/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr-basic.cpp b/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr-basic.cpp index 5fd823b754e..2579099148e 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr-basic.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/modernize-use-nullptr-basic.cpp @@ -304,8 +304,8 @@ void test_const_pointers_abiguous() { // CHECK-FIXES: const_ambiguous_function((int*)nullptr); } -// Test where the implicit cast to null is surrounded by another implict cast -// with possible explict casts in-between. +// Test where the implicit cast to null is surrounded by another implicit cast +// with possible explicit casts in-between. void test_const_pointers() { const int *const_p1 = 0; // CHECK-MESSAGES: :[[@LINE-1]]:25: warning: use nullptr diff --git a/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.m b/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.m index 0a9ea0639ec..f315e688308 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.m +++ b/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.m @@ -9,7 +9,7 @@ // not raise performance-unnecessary-value-param. void foo(id object) { } -// Same for explcitly non-ARC-managed Objective-C objects. +// Same for explicitly non-ARC-managed Objective-C objects. void bar(__unsafe_unretained id object) { } // Same for Objective-c classes. diff --git a/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.mm b/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.mm index 4ed05069a4b..8e07cedb7d7 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.mm +++ b/clang-tools-extra/test/clang-tidy/checkers/performance-unnecessary-value-param-arc.mm @@ -9,7 +9,7 @@ // not raise performance-unnecessary-value-param. void foo(id object) { } -// Same for explcitly non-ARC-managed Objective-C objects. +// Same for explicitly non-ARC-managed Objective-C objects. void bar(__unsafe_unretained id object) { } // Same for Objective-c classes. diff --git a/clang-tools-extra/test/clang-tidy/checkers/readability-redundant-declaration.cpp b/clang-tools-extra/test/clang-tidy/checkers/readability-redundant-declaration.cpp index 47c9584311b..d86a456971e 100644 --- a/clang-tools-extra/test/clang-tidy/checkers/readability-redundant-declaration.cpp +++ b/clang-tools-extra/test/clang-tidy/checkers/readability-redundant-declaration.cpp @@ -10,7 +10,7 @@ // RUN: [{key: readability-redundant-declaration.IgnoreMacros, \ // RUN: value: 0}]}" -- -fms-compatibility -DEXTERNINLINE // -// With -fno-ms-compatiblity, DEXTERNINLINE causes additional output. +// With -fno-ms-compatibility, DEXTERNINLINE causes additional output. // (The leading ',' means "default checks in addition to NOMSCOMPAT checks.) // RUN: %check_clang_tidy -check-suffix=,NOMSCOMPAT \ // RUN: %s readability-redundant-declaration %t -- \ |

