Index: clang-tools-extra/trunk/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/trunk/clang-tidy/add_new_check.py +++ clang-tools-extra/trunk/clang-tidy/add_new_check.py @@ -138,7 +138,7 @@ if (MatchedDecl->getName().startswith("awesome_")) return; diag(MatchedDecl->getLocation(), "function '%%0' is insufficiently awesome") - << MatchedDecl->getName() + << MatchedDecl << FixItHint::CreateInsertion(MatchedDecl->getLocation(), "awesome_"); }