[clang-tools-extra] r209062 - Track clang changes from r209061
Alp Toker
alp at nuanti.com
Fri May 16 21:54:13 PDT 2014
Author: alp
Date: Fri May 16 23:54:13 2014
New Revision: 209062
URL: http://llvm.org/viewvc/llvm-project?rev=209062&view=rev
Log:
Track clang changes from r209061
Modified:
clang-tools-extra/trunk/clang-tidy/google/GoogleTidyModule.cpp
Modified: clang-tools-extra/trunk/clang-tidy/google/GoogleTidyModule.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/google/GoogleTidyModule.cpp?rev=209062&r1=209061&r2=209062&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/google/GoogleTidyModule.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/google/GoogleTidyModule.cpp Fri May 16 23:54:13 2014
@@ -65,8 +65,7 @@ void ExplicitConstructorCheck::check(con
if (Ctor->isExplicit() && Ctor->isCopyOrMoveConstructor()) {
auto isKWExplicit = [](const Token &Tok) {
return Tok.is(tok::raw_identifier) &&
- StringRef(Tok.getRawIdentifierData(), Tok.getLength()) ==
- "explicit";
+ Tok.getRawIdentifier() == "explicit";
};
SourceRange ExplicitTokenRange =
FindToken(*Result.SourceManager, Result.Context->getLangOpts(),
More information about the cfe-commits
mailing list