Track clang changes from r209061

llvm-svn: 209062
This commit is contained in:
Alp Toker 2014-05-17 04:54:13 +00:00
parent 2d57cea256
commit 124084e238
1 changed files with 1 additions and 2 deletions

View File

@ -65,8 +65,7 @@ void ExplicitConstructorCheck::check(const MatchFinder::MatchResult &Result) {
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(),