diff options
Diffstat (limited to 'clang-tools-extra')
| -rwxr-xr-x | clang-tools-extra/clang-tidy/add_new_check.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index 2c4ca7167d6..17557884ec1 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -138,7 +138,7 @@ void %(check_name)s::check(const MatchFinder::MatchResult &Result) { if (MatchedDecl->getName().startswith("awesome_")) return; diag(MatchedDecl->getLocation(), "function '%%0' is insufficiently awesome") - << MatchedDecl->getName() + << MatchedDecl << FixItHint::CreateInsertion(MatchedDecl->getLocation(), "awesome_"); } |

