[PATCH] D36154: Adapt clang-tidy checks to changing semantics of hasDeclaration.

Benjamin Kramer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 09:10:50 PDT 2017


bkramer added inline comments.


================
Comment at: clang-tidy/google/StringReferenceMemberCheck.cpp:31
+  auto String = anyOf(namedDecl(hasName("::std::string")),
                       recordDecl(hasName("::string")));
   auto ConstString = qualType(isConstQualified(), hasDeclaration(String));
----------------
I think this should be namedDecl too.


https://reviews.llvm.org/D36154





More information about the cfe-commits mailing list