[PATCH] D19331: [Clang-tidy] Fix for crash in modernize-raw-string-literal check
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 20 11:46:19 PDT 2016
alexfh added a comment.
1. Please generate diffs with full context when sending patches. Use any of the methods described in http://llvm.org/docs/Phabricator.html.
================
Comment at: clang-tidy/modernize/RawStringLiteralCheck.cpp:111
@@ -110,2 +110,3 @@
void RawStringLiteralCheck::registerMatchers(MatchFinder *Finder) {
- Finder->addMatcher(stringLiteral().bind("lit"), this);
+ const auto IsNotPredefinedExpr = unless(hasParent(predefinedExpr()));
+
----------------
No need in this variable.
Repository:
rL LLVM
http://reviews.llvm.org/D19331
More information about the cfe-commits
mailing list