reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 1201 extern const internal::VariadicDynCastAllOfMatcher<Decl, FriendDecl> friendDecl;

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  228   REGISTER_MATCHER(friendDecl);
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  167   auto Functions = functionDecl(CommonFilter, unless(hasParent(friendDecl())),
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp
   45   Finder->addMatcher(friendDecl().bind("friend_decl"), this);
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  381   Finder->addMatcher(friendDecl(hasDescendant(F)).bind("Friend"), this);
tools/clang/tools/extra/clang-tidy/readability/RedundantDeclarationCheck.cpp
   35                           hasParent(friendDecl()))))))
tools/clang/unittests/AST/ASTImporterTest.cpp
 2612                                               .match(ToTU, friendDecl())
 2641       ToTU, functionDecl(unless(hasParent(friendDecl()))));
 2856   auto *FromFriend = FirstDeclMatcher<FriendDecl>().match(FromTU, friendDecl());
 2869   auto *ToFriend = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 3774   auto Pattern = cxxRecordDecl(has(friendDecl()));
 3793       has(cxxRecordDecl(has(friendDecl(has(classTemplateDecl()))))));
 3799   auto *Friend = FirstDeclMatcher<FriendDecl>().match(ToD, friendDecl());
 3946   auto *Friend = FirstDeclMatcher<FriendDecl>().match(FromTU0, friendDecl());
 4494   auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4520   auto *FriendD = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4715   auto *FriendD0 = FirstDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 4716   auto *FriendD1 = LastDeclMatcher<FriendDecl>().match(ToTU, friendDecl());
 5084           FromTU, friendDecl()));
tools/clang/unittests/AST/SourceLocationTest.cpp
  405                              friendDecl()));
  414                              friendDecl()));
  423                              friendDecl()));
  432                              friendDecl()));
  441                              friendDecl()));
  450                              friendDecl()));
  460                              friendDecl(), Lang_CXX11));
  470                              friendDecl(), Lang_CXX11));
  480                              friendDecl(), Lang_CXX11));
  490                              friendDecl(), Lang_CXX11));
  501                              friendDecl(), Lang_CXX11));
  512                              friendDecl(), Lang_CXX11));
  526       Code, friendDecl(has(cxxConstructorDecl(ofClass(hasName("B")))))));
  530       Code, friendDecl(has(cxxDestructorDecl(ofClass(hasName("B")))))));
  544       Code, friendDecl(has(cxxConstructorDecl(ofClass(hasName("B")))))));
  548       Code, friendDecl(has(cxxDestructorDecl(ofClass(hasName("B")))))));
  558                              friendDecl()));
  568                              friendDecl()));
  578                              friendDecl()));
  588                              friendDecl()));
  597                              friendDecl()));
  606                              friendDecl(), Lang_CXX11));
  619       friendDecl(hasParent(cxxRecordDecl(isTemplateInstantiation())))));
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  164                       friendDecl(hasType(asString("class X")))));
  166                       friendDecl(hasType(recordDecl(hasName("X"))))));
  169                       functionDecl(hasName("f"), hasParent(friendDecl()))));