Skip to content

Commit

Permalink
[clang-tidy] Fix for typos in the tests for bugprone-exception-escape
Browse files Browse the repository at this point in the history
llvm-svn: 344445
  • Loading branch information
Adam Balogh committed Oct 13, 2018
1 parent d053f5c commit af1f374
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -263,21 +263,21 @@ void thrower(int n) {
}

int directly_recursive(int n) noexcept {
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in funcion 'directly_recursive' which should not throw exceptions
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in function 'directly_recursive' which should not throw exceptions
if (n == 0)
thrower(n);
return directly_recursive(n);
}

int indirectly_recursive(int n) noexcept;
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in functin 'indirectly_recursive' which should not throw exceptions
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in function 'indirectly_recursive' which should not throw exceptions

int recursion_helper(int n) {
indirectly_recursive(n);
}

int indirectly_recursive(int n) noexcept {
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in funcion 'indirectly_recursive' which should not throw exceptions
// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: an exception may be thrown in function 'indirectly_recursive' which should not throw exceptions
if (n == 0)
thrower(n);
return recursion_helper(n);
Expand Down

0 comments on commit af1f374

Please sign in to comment.