[PATCH] D20766: [clang-tidy] Fix script adding new clang-tidy check
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Mon May 30 08:11:40 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL271207: [clang-tidy] Fix script adding new clang-tidy check (authored by etienneb).
Changed prior to commit:
http://reviews.llvm.org/D20766?vs=58878&id=58958#toc
Repository:
rL LLVM
http://reviews.llvm.org/D20766
Files:
clang-tools-extra/trunk/clang-tidy/add_new_check.py
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_");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20766.58958.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160530/6875090f/attachment.bin>
More information about the cfe-commits
mailing list