forked from OSchip/llvm-project
parent
2d57cea256
commit
124084e238
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue