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

Overridden By

include/llvm/Testing/Support/Error.h
   53   void DescribeTo(std::ostream *OS) const override {
  112   void DescribeTo(std::ostream *OS) const override {
  143 MATCHER(Succeeded, "") { return arg.Success(); }
  144 MATCHER(Failed, "") { return !arg.Success(); }
include/llvm/Testing/Support/SupportHelpers.h
   81     void DescribeTo(std::ostream *OS) const override {
tools/clang/tools/extra/clangd/unittests/BackgroundIndexTests.cpp
   26 MATCHER_P(Named, N, "") { return arg.Name == N; }
   27 MATCHER(Declared, "") {
   30 MATCHER(Defined, "") { return !StringRef(arg.Definition.FileURI).empty(); }
   31 MATCHER_P(FileURI, F, "") { return StringRef(arg.Location.FileURI) == F; }
   37 MATCHER(EmptyIncludeNode, "") {
   42 MATCHER(HadErrors, "") {
   46 MATCHER_P(NumReferences, N, "") { return arg.References == N; }
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
   48 MATCHER_P2(DeclAt, File, Range, "") {
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp
   54 MATCHER_P(Named, Name, "") { return arg.Name == Name; }
   55 MATCHER_P(NameStartsWith, Prefix, "") {
   58 MATCHER_P(Scope, S, "") { return arg.Scope == S; }
   59 MATCHER_P(Qualifier, Q, "") { return arg.RequiredQualifier == Q; }
   60 MATCHER_P(Labeled, Label, "") {
   63 MATCHER_P(SigHelpLabeled, Label, "") { return arg.label == Label; }
   64 MATCHER_P(Kind, K, "") { return arg.Kind == K; }
   65 MATCHER_P(Doc, D, "") { return arg.Documentation == D; }
   66 MATCHER_P(ReturnType, D, "") { return arg.ReturnType == D; }
   67 MATCHER_P(HasInclude, IncludeHeader, "") {
   70 MATCHER_P(InsertInclude, IncludeHeader, "") {
   74 MATCHER(InsertInclude, "") {
   77 MATCHER_P(SnippetSuffix, Text, "") { return arg.SnippetSuffix == Text; }
   78 MATCHER_P(Origin, OriginSet, "") { return arg.Origin == OriginSet; }
   79 MATCHER_P(Signature, S, "") { return arg.Signature == S; }
   89 MATCHER(IsDocumented, "") { return !arg.Documentation.empty(); }
   90 MATCHER(Deprecated, "") { return arg.Deprecated; }
 1034 MATCHER_P(ParamsAre, P, "") {
 1044 MATCHER_P(SigDoc, Doc, "") { return arg.documentation == Doc; }
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp
   51 MATCHER_P2(Diag, Range, Message,
   56 MATCHER_P3(Fix, Range, Replacement, Message,
   63 MATCHER_P(FixMessage, Message, "") {
   67 MATCHER_P(EqualToLSPDiag, LSPDiag,
   78 MATCHER_P(DiagSource, S, "") { return arg.Source == S; }
   79 MATCHER_P(DiagName, N, "") { return arg.Name == N; }
   80 MATCHER_P(DiagSeverity, S, "") { return arg.Severity == S; }
   82 MATCHER_P(EqualToFix, Fix, "LSP fix " + llvm::to_string(Fix)) {
tools/clang/tools/extra/clangd/unittests/FileIndexTests.cpp
   35 MATCHER_P(RefRange, Range, "") {
   41 MATCHER_P(FileURI, F, "") { return llvm::StringRef(arg.Location.FileURI) == F; }
   42 MATCHER_P(DeclURI, U, "") {
   45 MATCHER_P(DefURI, U, "") {
   48 MATCHER_P(QName, N, "") { return (arg.Scope + arg.Name).str() == N; }
   49 MATCHER_P(NumReferences, N, "") { return arg.References == N; }
   50 MATCHER_P(hasOrign, O, "") { return bool(arg.Origin & O); }
tools/clang/tools/extra/clangd/unittests/FindSymbolsTests.cpp
   34 MATCHER_P(QName, Name, "") {
   39 MATCHER_P(WithName, N, "") { return arg.name == N; }
   40 MATCHER_P(WithKind, Kind, "") { return arg.kind == Kind; }
   44 MATCHER_P(SymNameRange, Range, "") { return arg.selectionRange == Range; }
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp
   52   void DescribeTo(::std::ostream *OS) const override {
  187   void DescribeTo(::std::ostream *OS) const override {
tools/clang/tools/extra/clangd/unittests/HeaderSourceSwitchTests.cpp
   76 MATCHER_P(DeclNamed, Name, "") {
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp
  127 MATCHER_P(Written, Name, "") { return arg.Written == Name; }
  128 MATCHER_P(Resolved, Name, "") { return arg.Resolved == Name; }
  129 MATCHER_P(IncludeLine, N, "") { return arg.R.start.line == N; }
  131 MATCHER_P2(Distance, File, D, "") {
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
   29 MATCHER(IsTU, "") { return arg.Flags & IncludeGraphNode::SourceFlag::IsTU; }
   31 MATCHER_P(HasDigest, Digest, "") { return arg.Digest == Digest; }
   33 MATCHER_P(HasName, Name, "") { return arg.Name == Name; }
   35 MATCHER(HasSameURI, "") {
tools/clang/tools/extra/clangd/unittests/IndexTests.cpp
   34 MATCHER_P(Named, N, "") { return arg.Name == N; }
   35 MATCHER_P(RefRange, Range, "") {
   41 MATCHER_P(FileURI, F, "") { return StringRef(arg.Location.FileURI) == F; }
  420 MATCHER_P2(IncludeHeaderWithRef, IncludeHeader, References, "") {
tools/clang/tools/extra/clangd/unittests/Matchers.h
   44   void DescribeTo(std::ostream *OS) const override {
  158     virtual void DescribeTo(::std::ostream *os) const {
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
   38 MATCHER_P(DeclNamed, Name, "") {
   51 MATCHER_P(WithTemplateArgs, ArgName, "") {
tools/clang/tools/extra/clangd/unittests/RenameTests.cpp
   21 MATCHER_P2(RenameRange, Code, Range, "") {
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp
   26 MATCHER_P(LineNumber, L, "") { return arg.Line == L; }
   27 MATCHER(EmptyHighlightings, "") { return arg.Tokens.empty(); }
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp
   96 MATCHER_P(ID, I, "") { return arg.ID == cantFail(SymbolID::fromStr(I)); }
   97 MATCHER_P(QName, Name, "") { return (arg.Scope + arg.Name).str() == Name; }
   98 MATCHER_P2(IncludeHeaderWithRef, IncludeHeader, References, "") {
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
   32 MATCHER_P2(Pos, Line, Col, "") {
   36 MATCHER_P(MacroName, Name, "") { return arg.Name == Name; }
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
   48 MATCHER_P(Labeled, Label, "") {
   51 MATCHER_P(ReturnType, D, "") { return arg.ReturnType == D; }
   52 MATCHER_P(Doc, D, "") { return arg.Documentation == D; }
   53 MATCHER_P(Snippet, S, "") {
   56 MATCHER_P(QName, Name, "") { return (arg.Scope + arg.Name).str() == Name; }
   57 MATCHER_P(TemplateArgs, TemplArgs, "") {
   60 MATCHER_P(DeclURI, P, "") {
   63 MATCHER_P(DefURI, P, "") { return StringRef(arg.Definition.FileURI) == P; }
   64 MATCHER(IncludeHeader, "") { return !arg.IncludeHeaders.empty(); }
   65 MATCHER_P(IncludeHeader, P, "") {
   69 MATCHER_P2(IncludeHeaderWithRef, IncludeHeader, References, "") {
   72 MATCHER_P(DeclRange, Pos, "") {
   80 MATCHER_P(DefRange, Pos, "") {
   87 MATCHER_P(RefCount, R, "") { return int(arg.References) == R; }
   88 MATCHER_P(ForCodeCompletion, IsIndexedForCodeCompletion, "") {
   92 MATCHER(Deprecated, "") { return arg.Flags & Symbol::Deprecated; }
   93 MATCHER(ImplementationDetail, "") {
   96 MATCHER(VisibleOutsideFile, "") {
   99 MATCHER(RefRange, "") {
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
   41 MATCHER_P2(TUState, State, ActionName, "") {
tools/clang/tools/extra/clangd/unittests/TraceTests.cpp
   23 MATCHER_P(StringNode, Val, "") {
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
   66 MATCHER_P6(TweakIsAvailable, TweakID, Ctx, Header, ExtraArgs, ExtraFiles, Index,
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
   51 MATCHER_P2(FileWithContents, FileName, Contents, "") {
tools/clang/tools/extra/clangd/unittests/TypeHierarchyTests.cpp
   40 MATCHER_P(WithName, N, "") { return arg.name == N; }
   41 MATCHER_P(WithKind, Kind, "") { return arg.kind == Kind; }
   42 MATCHER_P(SelectionRangeIs, R, "") { return arg.selectionRange == R; }
   54 MATCHER(ParentsNotResolved, "") { return !arg.parents; }
   55 MATCHER(ChildrenNotResolved, "") { return !arg.children; }
  221 MATCHER_P(ImplicitSpecOf, ClassTemplate, "") {
tools/clang/tools/extra/clangd/unittests/URITests.cpp
   26 MATCHER_P(Scheme, S, "") { return arg.scheme() == S; }
   27 MATCHER_P(Authority, A, "") { return arg.authority() == A; }
   28 MATCHER_P(Body, B, "") { return arg.body() == B; }
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
  114 MATCHER_P3(Sym, Name, Decl, DefOrNone, "") {
  138 MATCHER_P(Sym, Name, "") { return arg.Name == Name; }
  140 MATCHER_P(RangeIs, R, "") { return arg.range == R; }
tools/clang/tools/extra/unittests/clang-include-fixer/FuzzySymbolIndexTests.cpp
   30 MATCHER_P(MatchesSymbol, Identifier, "") {
tools/clang/unittests/Index/IndexTests.cpp
  150 MATCHER_P(QName, Name, "") { return arg.QName == Name; }
  151 MATCHER_P(WrittenAt, Pos, "") { return arg.WrittenPos == Pos; }
  152 MATCHER_P(DeclAt, Pos, "") { return arg.DeclPos == Pos; }
  153 MATCHER_P(Kind, SymKind, "") { return arg.SymInfo.Kind == SymKind; }
  154 MATCHER_P(HasRole, Role, "") { return arg.Roles & static_cast<unsigned>(Role); }
tools/clang/unittests/Tooling/ExecutionTest.cpp
  247 MATCHER_P(Named, Name, "") { return arg.first == Name; }
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  122 MATCHER_P(EqualsCharSourceRange, Range, "") {
tools/clang/unittests/Tooling/SourceCodeTest.cpp
   45 MATCHER_P(EqualsRange, R, "") {
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
   66 MATCHER_P(SameRange, A, "") {
   77 MATCHER_P(Kind, K, "") { return arg.kind() == K; }
   78 MATCHER_P2(HasText, Text, SourceMgr, "") {
   82 MATCHER_P(RangeIs, SourceRng, "") {
unittests/DebugInfo/MSF/MappedBlockStreamTest.cpp
  494 MATCHER_P3(BlockIsFilledWith, Layout, BlockIndex, Byte, "succeeded") {
unittests/FuzzMutate/OperationsTest.cpp
   71 MATCHER_P(TypesMatch, V, "has type " + PrintToString(V->getType())) {
   75 MATCHER_P(HasType, T, "") { return arg->getType() == T; }
unittests/IR/PassBuilderCallbacksTest.cpp
  303 MATCHER_P(HasName, Name, "") {
  308 MATCHER_P(HasNameRegex, Name, "") {
unittests/Support/VirtualFileSystemTest.cpp
  946 MATCHER_P2(IsHardLinkTo, FS, Target, "") {
unittests/Transforms/Scalar/LoopPassManagerTest.cpp
  217 MATCHER_P(HasName, Name, "") {
unittests/tools/llvm-cfi-verify/GraphBuilder.cpp
  144 MATCHER_P2(HasPath, Result, Matcher, "has path " + PrintToString(Matcher)) {
unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp
   42 MATCHER(EqMCInst, "") {
unittests/tools/llvm-exegesis/X86/SnippetFileTest.cpp
   60 MATCHER_P2(RegisterInitialValueIs, Reg, Val, "") {
unittests/tools/llvm-exegesis/X86/SnippetGeneratorTest.cpp
   35 MATCHER(IsInvalid, "") { return !arg.isValid(); }
   36 MATCHER(IsReg, "") { return arg.isReg(); }
utils/unittest/googlemock/include/gmock/gmock-matchers.h
  455     virtual void DescribeTo(::std::ostream* os) const {
  582     virtual void DescribeTo(::std::ostream* os) const {
  865   virtual void DescribeTo(::std::ostream* os) const { *os << "is anything"; }
  912     virtual void DescribeTo(::std::ostream* os) const {
 1455   virtual void DescribeTo(::std::ostream* os) const {
 1499   virtual void DescribeTo(::std::ostream* os) const {
 1671   virtual void DescribeTo(::std::ostream* os) const {
 1958     virtual void DescribeTo(::std::ostream* os) const {
 2073     virtual void DescribeTo(::std::ostream* os) const {
 2362     virtual void DescribeTo(::std::ostream* os) const {
 2421     virtual void DescribeTo(::std::ostream* os) const {
 2738     virtual void DescribeTo(::std::ostream* os) const {
 2857   virtual void DescribeTo(::std::ostream* os) const {
 2886   virtual void DescribeTo(::std::ostream* os) const {
 3021   virtual void DescribeTo(::std::ostream* os) const {
 3134   virtual void DescribeTo(::std::ostream* os) const {
 3377   virtual void DescribeTo(::std::ostream* os) const {
 3602     virtual void DescribeTo(::std::ostream* os) const {
utils/unittest/googlemock/include/gmock/gmock-more-matchers.h
   50 MATCHER(IsEmpty, negation ? "isn't empty" : "is empty") {

References

utils/unittest/googlemock/include/gmock/gmock-matchers.h
  138     DescribeTo(os);
  269   void DescribeTo(::std::ostream* os) const { impl_->DescribeTo(os); }
utils/unittest/googlemock/src/gmock-matchers.cc
  403     matcher_describers_[0]->DescribeTo(os);
  411     matcher_describers_[i]->DescribeTo(os);
  433     matcher_describers_[i]->DescribeTo(os);
  469         matcher_describers_[mi]->DescribeTo(listener->stream());