diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-17 04:54:13 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-17 04:54:13 +0000 |
commit | 124084e23823202ed3f286f28fae2457b82fe913 (patch) | |
tree | a3ebd1a535a64a6b5eda7ace626d87095ad56514 /clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp | |
parent | 2d57cea25688fc3372467ee97505ed07d8474d48 (diff) | |
download | bcm5719-llvm-124084e23823202ed3f286f28fae2457b82fe913.tar.gz bcm5719-llvm-124084e23823202ed3f286f28fae2457b82fe913.zip |
Track clang changes from r209061
llvm-svn: 209062
Diffstat (limited to 'clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp index 7119ef0d3cb..c69187291f9 100644 --- a/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp +++ b/clang-tools-extra/clang-tidy/google/GoogleTidyModule.cpp @@ -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(), |