diff options
author | Richard Trieu <rtrieu@google.com> | 2019-08-20 00:28:21 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-08-20 00:28:21 +0000 |
commit | 8f9e489a6658a77267f4ebcf59b639c0c26a183d (patch) | |
tree | 1ae375b0659b18e82664736f9b8aeb6ae66bbf46 | |
parent | 081c57989e8846ed947707f559b6ce6481aad827 (diff) | |
download | bcm5719-llvm-8f9e489a6658a77267f4ebcf59b639c0c26a183d.tar.gz bcm5719-llvm-8f9e489a6658a77267f4ebcf59b639c0c26a183d.zip |
Fix typo. "piont" => "point"
Found by Chris Morris (cwmorris).
llvm-svn: 369316
-rw-r--r-- | clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp | 2 | ||||
-rw-r--r-- | clang-tools-extra/test/clang-tidy/abseil-duration-conversion-cast.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp b/clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp index d9e91554210..d3007d79f37 100644 --- a/clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp +++ b/clang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.cpp @@ -70,7 +70,7 @@ void DurationConversionCastCheck::check( llvm::StringRef NewFuncName = getDurationInverseForScale(*Scale).first; diag(MatchedCast->getBeginLoc(), "duration should be converted directly to " - "a floating-piont number rather than " + "a floating-point number rather than " "through a type cast") << FixItHint::CreateReplacement( MatchedCast->getSourceRange(), diff --git a/clang-tools-extra/test/clang-tidy/abseil-duration-conversion-cast.cpp b/clang-tools-extra/test/clang-tidy/abseil-duration-conversion-cast.cpp index 260aa327796..0c2a9d791f1 100644 --- a/clang-tools-extra/test/clang-tidy/abseil-duration-conversion-cast.cpp +++ b/clang-tools-extra/test/clang-tidy/abseil-duration-conversion-cast.cpp @@ -11,37 +11,37 @@ void f() { // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Hours(d1); x = static_cast<float>(absl::ToInt64Hours(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleHours(d1); i = static_cast<int>(absl::ToDoubleMinutes(d1)); // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Minutes(d1); x = static_cast<float>(absl::ToInt64Minutes(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMinutes(d1); i = static_cast<int>(absl::ToDoubleSeconds(d1)); // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Seconds(d1); x = static_cast<float>(absl::ToInt64Seconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleSeconds(d1); i = static_cast<int>(absl::ToDoubleMilliseconds(d1)); // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Milliseconds(d1); x = static_cast<float>(absl::ToInt64Milliseconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMilliseconds(d1); i = static_cast<int>(absl::ToDoubleMicroseconds(d1)); // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Microseconds(d1); x = static_cast<float>(absl::ToInt64Microseconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMicroseconds(d1); i = static_cast<int>(absl::ToDoubleNanoseconds(d1)); // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Nanoseconds(d1); x = static_cast<float>(absl::ToInt64Nanoseconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleNanoseconds(d1); // Functional-style casts @@ -49,7 +49,7 @@ void f() { // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Hours(d1); x = float(absl::ToInt64Microseconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMicroseconds(d1); // C-style casts @@ -57,7 +57,7 @@ void f() { // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Hours(d1); x = (float) absl::ToInt64Microseconds(d1); - // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:7: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMicroseconds(d1); // Type aliasing @@ -68,7 +68,7 @@ void f() { // CHECK-MESSAGES: [[@LINE-1]]:16: warning: duration should be converted directly to an integer rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToInt64Hours(d1); FancyFloat k = static_cast<FancyFloat>(absl::ToInt64Microseconds(d1)); - // CHECK-MESSAGES: [[@LINE-1]]:18: warning: duration should be converted directly to a floating-piont number rather than through a type cast [abseil-duration-conversion-cast] + // CHECK-MESSAGES: [[@LINE-1]]:18: warning: duration should be converted directly to a floating-point number rather than through a type cast [abseil-duration-conversion-cast] // CHECK-FIXES: absl::ToDoubleMicroseconds(d1); // Macro handling |