[PATCH] D20792: [clang-tidy] Remove redundant quote in add_new_check script
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Mon May 30 08:43:34 PDT 2016
etienneb created this revision.
etienneb added a reviewer: bkramer.
etienneb added a subscriber: cfe-commits.
Remove redundant quote.
These quotes were added here: http://reviews.llvm.org/D20766
http://reviews.llvm.org/D20792
Files:
clang-tidy/add_new_check.py
clang-tidy/misc/UnusedUsingDeclsCheck.cpp
Index: clang-tidy/misc/UnusedUsingDeclsCheck.cpp
===================================================================
--- clang-tidy/misc/UnusedUsingDeclsCheck.cpp
+++ clang-tidy/misc/UnusedUsingDeclsCheck.cpp
@@ -41,11 +41,11 @@
if (const auto *Using = Result.Nodes.getNodeAs<UsingDecl>("using")) {
// Ignores using-declarations defined in macros.
if (Using->getLocation().isMacroID())
- return ;
+ return;
// Ignores using-declarations defined in class definition.
if (isa<CXXRecordDecl>(Using->getDeclContext()))
- return ;
+ return;
UsingDeclContext Context(Using);
Context.UsingDeclRange = CharSourceRange::getCharRange(
Index: clang-tidy/add_new_check.py
===================================================================
--- clang-tidy/add_new_check.py
+++ clang-tidy/add_new_check.py
@@ -137,7 +137,7 @@
const auto *MatchedDecl = Result.Nodes.getNodeAs<FunctionDecl>("x");
if (MatchedDecl->getName().startswith("awesome_"))
return;
- diag(MatchedDecl->getLocation(), "function '%%0' is insufficiently awesome")
+ diag(MatchedDecl->getLocation(), "function %%0 is insufficiently awesome")
<< MatchedDecl
<< FixItHint::CreateInsertion(MatchedDecl->getLocation(), "awesome_");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20792.58966.patch
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160530/185cd2c6/attachment.bin>
More information about the cfe-commits
mailing list