Searched defs:Matcher (Results 1 - 25 of 28) sorted by relevance

12

/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/common/
H A Dmatcher.py30 class Matcher(object): class in inherits:object
/external/hamcrest/src/org/hamcrest/
H A DMatcher.java9 * Matcher implementations should <b>NOT directly implement this interface</b>.
11 * which will ensure that the Matcher API can grow to support
12 * new features and remain compatible with all Matcher implementations.
14 * For easy access to common Matcher implementations, use the static factory
21 public interface Matcher<T> extends SelfDescribing { interface in inherits:SelfDescribing
27 * because the caller of the Matcher does not know at runtime what the type is
39 * This method simply acts a friendly reminder not to implement Matcher directly and
43 * @see Matcher for reasons why.
/external/google-breakpad/src/testing/src/
H A Dgmock-matchers.cc34 // This file implements Matcher<const string&>, Matcher<string>, and
48 Matcher<const internal::string&>::Matcher(const internal::string& s) { function in class:testing::Matcher
54 Matcher<const internal::string&>::Matcher(const char* s) { function in class:testing::Matcher
59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); } function in class:testing::Matcher
62 Matcher<internal::string>::Matcher(cons function in class:testing::Matcher
[all...]
/external/google-breakpad/src/testing/include/gmock/
H A Dgmock-matchers.h58 // 2. a factory function that creates a Matcher<T> object from a
62 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
64 // ownership management as Matcher objects can now be copied like
187 // An internal class for implementing Matcher<T>, which will derive
188 // from it. We put functionalities common to all Matcher<T>
245 // A Matcher<T> is a copyable and IMMUTABLE (except by assignment)
247 // implementation of Matcher<T> is just a linked_ptr to const
249 // from Matcher!
251 class Matcher : public internal::MatcherBase<T> { class in namespace:testing
253 // Constructs a null matcher. Needed for storing Matcher object
256 Matcher() {} function in class:testing::Matcher
259 explicit Matcher(const MatcherInterface<T>* impl) function in class:testing::Matcher
271 class GTEST_API_ Matcher<const internal::string&> class in namespace:testing
274 Matcher() {} function in class:testing::Matcher
276 explicit Matcher(const MatcherInterface<const internal::string&>* impl) function in class:testing::Matcher
288 class GTEST_API_ Matcher<internal::string> class in namespace:testing
291 Matcher() {} function in class:testing::Matcher
293 explicit Matcher(const MatcherInterface<internal::string>* impl) function in class:testing::Matcher
2710 Matcher<T>::Matcher(T value) { *this = Eq(value); } function in class:testing::Matcher
[all...]
H A Dgmock-generated-matchers.h227 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher;
297 operator Matcher<ArgsTuple>() const {
316 operator Matcher<Container>() const {
327 const Matcher<const Element&> matcher =
344 operator Matcher<Container>() const {
349 const Matcher<const Element&> matchers[] = {
371 operator Matcher<Container>() const {
376 const Matcher<const Element&> matchers[] = {
400 operator Matcher<Container>() const {
405 const Matcher<cons
[all...]
/external/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h199 /// \brief For each \c Matcher<> a \c MatchCallback that will be called
223 /// \brief Returns the results of matching \p Matcher on \p Node.
226 /// \p Matcher on \p Node and returns the collected results.
235 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context);
239 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node,
250 /// const Decl *D = selectFirst<Decl>("id", match(Matcher.bind("id"),
275 match(MatcherT Matcher, const ast_type_traits::DynTypedNode &Node, argument
279 Finder.addMatcher(Matcher, &Callback);
286 match(MatcherT Matcher, const NodeT &Node, ASTContext &Context) { argument
287 return match(Matcher, ast_type_trait
[all...]
H A DASTMatchersInternal.h12 // Matchers are methods that return a Matcher<T> which provides a method
19 // 1. A function Matcher<T> MatcherName(<arguments>) which returns a Matcher<T>
21 // on the arguments. Matcher<T>s form an implicit reverse hierarchy
22 // to clang's AST class hierarchy, meaning that you can use a Matcher<Base>
23 // everywhere a Matcher<Derived> is required.
188 /// Used by the implementation of Matcher<T> and DynTypedMatcher.
248 template <typename> class Matcher;
250 /// \brief Matcher that works on a \c DynTypedNode.
252 /// It is constructed from a \c Matcher<
409 class Matcher { class in namespace:clang::ast_matchers::internal
412 explicit Matcher(MatcherInterface<T> *Implementation) function in class:clang::ast_matchers::internal::Matcher
419 Matcher(const Matcher<From> &Other, function in class:clang::ast_matchers::internal::Matcher
431 Matcher(const Matcher<TypeT> &Other, function in class:clang::ast_matchers::internal::Matcher
496 explicit Matcher(const DynTypedMatcher &Implementation) function in class:clang::ast_matchers::internal::Matcher
530 matchesFirstInRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument
546 matchesFirstInPointerRange(const MatcherT &Matcher, IteratorT Start, IteratorT End, ASTMatchFinder *Finder, BoundNodesTreeBuilder *Builder) argument
797 matchesChildOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, TraversalKind Traverse, BindKind Bind) argument
814 matchesDescendantOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, BindKind Bind) argument
831 matchesAncestorOf(const T &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument
[all...]
H A DASTMatchers.h115 internal::Matcher<T> id(const std::string &ID,
123 typedef internal::Matcher<Decl> DeclarationMatcher;
124 typedef internal::Matcher<Stmt> StatementMatcher;
125 typedef internal::Matcher<QualType> TypeMatcher;
126 typedef internal::Matcher<TypeLoc> TypeLocMatcher;
127 typedef internal::Matcher<NestedNameSpecifier> NestedNameSpecifierMatcher;
128 typedef internal::Matcher<NestedNameSpecifierLoc> NestedNameSpecifierLocMatcher;
135 /// to an \c internal::Matcher<> type such as \c TypeMatcher.
144 /// Usable as: Any Matcher
183 /// Usable as: Matcher<Dec
1935 findAll(const internal::Matcher<T> &Matcher) argument
[all...]
/external/openfst/src/include/fst/
H A Dmatcher-fst.h35 // class Matcher {
42 // Matcher(const F &fst, MatchType type, MatcherData *data);
45 // // passed to a Matcher constructor.
205 class Matcher< MatcherFst<F, M, N, I> > { class in namespace:fst
212 Matcher(const FST &fst, MatchType match_type) { function in class:fst::Matcher
216 Matcher(const Matcher<FST> &matcher) { function in class:fst::Matcher
220 ~Matcher() { delete matcher_; }
222 Matcher<FST> *Copy() const {
223 return new Matcher<FS
[all...]
H A Dmatcher.h37 // The Matcher interface is:
40 // class Matcher {
49 // Matcher(const F &fst, MatchType type);
52 // Matcher(const Matcher &matcher, bool safe = false);
56 // Matcher<F> *Copy(bool safe = false) const;
91 // Matcher prefers being used as the matching side in composition.
94 // Matcher needs to be used as the matching side in composition.
100 // Matcher interface, templated on the Arc definition; used
1150 // Matcher<StdFs
1158 class Matcher { class in namespace:fst
1166 Matcher(const F &fst, MatchType match_type) { function in class:fst::Matcher
1172 Matcher(const Matcher<F> &matcher, bool safe = false) { function in class:fst::Matcher
1177 Matcher(MatcherBase<Arc>* base_matcher) { base_ = base_matcher; } function in class:fst::Matcher
[all...]
/external/chromium-trace/trace-viewer/tracing/third_party/closure_linter/closure_linter/
H A Djavascripttokenizer.py31 Matcher = matcher.Matcher variable
197 Matcher(END_BLOCK_COMMENT, Type.END_DOC_COMMENT,
201 Matcher(DOC_INLINE_FLAG, Type.DOC_INLINE_FLAG),
202 Matcher(DOC_FLAG_LEX_SPACES, Type.DOC_FLAG,
206 Matcher(DOC_FLAG, Type.DOC_FLAG, JavaScriptModes.DOC_COMMENT_MODE),
209 Matcher(START_BLOCK, Type.DOC_START_BRACE),
210 Matcher(END_BLOCK, Type.DOC_END_BRACE),
211 Matcher(DOC_PREFIX, Type.DOC_PREFIX, None, True)]
214 # The token matcher groups work as follows: it is an list of Matcher object
[all...]
/external/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h12 /// Supports all the types required for dynamic Matcher construction.
91 /// the underlying matcher(s) can unambiguously return a Matcher<T>.
98 bool canConstructFrom(const DynTypedMatcher &Matcher,
101 /// \brief Convert \p Matcher the destination type and return it as a new
104 convertMatcher(const DynTypedMatcher &Matcher) const = 0;
139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher);
168 /// \c Matcher<T>.
171 /// \c Matcher<T>.
173 /// overloads can be converted to \c Matcher<T>. If there are more than one
194 /// \brief Return this matcher as a \c Matcher<
315 VariantMatcher *Matcher; member in union:clang::ast_matchers::dynamic::VariantValue::AllValues
[all...]
/external/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp26 return (Twine("Matcher<") + MatcherKind.asStringRef() + ">").str();
53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, argument
55 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind);
56 return Matcher.canConvertTo(NodeKind);
66 // Matcher<T>.
82 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} argument
85 return Matcher;
89 return (Twine("Matcher<")
108 const DynTypedMatcher Matcher; member in class:clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
218 SingleMatcher(const DynTypedMatcher &Matcher) argument
256 VariantValue(const VariantMatcher &Matcher) argument
[all...]
H A DMarshallers.h57 template <class T> struct ArgTypeTraits<ast_matchers::internal::Matcher<T> > {
61 static ast_matchers::internal::Matcher<T> get(const VariantValue &Value) {
100 /// \brief Matcher descriptor interface.
170 /// \param Func Matcher construct function. This is the function that
220 Out.push_back(ast_matchers::internal::Matcher<typename TypeList::head>(Poly));
226 /// There are 2 cases right now: The return value is a Matcher<T> or is a
228 /// For the latter, we instantiate all the possible Matcher<T> of the poly
230 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) { argument
231 return VariantMatcher::SingleMatcher(Matcher);
265 struct BuildReturnTypeVector<ast_matchers::internal::Matcher<
[all...]
/external/clang/unittests/ASTMatchers/Dynamic/
H A DParserTest.cpp32 ast_matchers::internal::Matcher<Stmt> M = stmt(stmt(), stmt());
47 const ExpectedMatchersTy::value_type *Matcher = variable
49 return reinterpret_cast<MatcherCtor>(Matcher);
57 const ExpectedMatchersTy::value_type *Matcher = variable
59 MatcherInfo ToStore = { Matcher->first, NameRange, Args, BindID };
61 return VariantMatcher::SingleMatcher(Matcher->second);
74 typedef std::map<std::string, ast_matchers::internal::Matcher<Stmt> >
161 using ast_matchers::internal::Matcher;
178 Matcher<Decl> M = VarDecl->unconditionalConvertTo<Decl>();
212 "(Expected = Matcher<Exp
[all...]
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/util/
H A DUnicodePropertySource.java96 public UnicodeSet getPropertySet(Matcher matcher, UnicodeSet result) {
110 public interface Matcher { interface in class:UnicodePropertySource
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTrieMap.java92 abstract public Matcher<V> getMatcher();
94 public abstract static class Matcher<V> { class in class:TrieMap
170 public TrieMap.Matcher<V> getMatcher() {
211 public class BytesMatcher extends Matcher<V> {
356 public TrieMap.Matcher<V> getMatcher() {
395 public class CharsMatcher extends Matcher<V> {
/external/llvm/utils/TableGen/
H A DDAGISelMatcherEmitter.cpp1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===//
54 unsigned EmitMatcherList(const Matcher *N, unsigned Indent,
59 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS);
61 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
138 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
143 case Matcher::Scope: {
205 case Matcher::RecordNode:
214 case Matcher::RecordChild:
224 case Matcher::RecordMemRef:
228 case Matcher
454 const EmitRegisterMatcher *Matcher = cast<EmitRegisterMatcher>(N); local
[all...]
H A DDAGISelMatcher.h22 class Matcher;
31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant,
33 void OptimizeMatcher(std::unique_ptr<Matcher> &Matcher,
35 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP,
39 /// Matcher - Base class for all the DAG ISel Matcher representation
41 class Matcher { class in namespace:llvm
44 std::unique_ptr<Matcher> Nex
92 Matcher(KindTy K) : Kind(K) {} function in class:llvm::Matcher
[all...]
/external/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp87 MatchChildASTVisitor(const DynTypedMatcher *Matcher, argument
93 : Matcher(Matcher),
242 // Sets 'Matched' to true if 'Matcher' matches 'Node' and:
254 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder,
262 if (Matcher->matches(ast_type_traits::DynTypedNode::create(Node), Finder,
283 const DynTypedMatcher *const Matcher; member in class:clang::ast_matchers::internal::__anon884::MatchChildASTVisitor
380 const DynTypedMatcher &Matcher,
385 return matchesRecursively(Node, Matcher, Builder, MaxDepth, Traversal,
389 Key.MatcherID = Matcher
379 memoizedMatchesRecursively(const ast_type_traits::DynTypedNode &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, int MaxDepth, TraversalKind Traversal, BindKind Bind) argument
413 matchesRecursively(const ast_type_traits::DynTypedNode &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, int MaxDepth, TraversalKind Traversal, BindKind Bind) argument
618 memoizedMatchesAncestorOfRecursively( const ast_type_traits::DynTypedNode &Node, const DynTypedMatcher &Matcher, BoundNodesTreeBuilder *Builder, AncestorMatchMode MatchMode) argument
712 typeHasMatchingAlias(const Type *TypeNode, const Matcher<NamedDecl> Matcher, BoundNodesTreeBuilder *Builder) argument
[all...]
/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.cpp686 auto VD = internal::Matcher<VarDecl>(Name).dynCastTo<Decl>();
687 auto RD = internal::Matcher<RecordDecl>(Name).dynCastTo<Decl>();
861 DeclarationMatcher Matcher = enumConstantDecl(hasName("A")); local
862 EXPECT_TRUE(matches("enum X{ A };", Matcher));
863 EXPECT_TRUE(notMatches("enum X{ B };", Matcher));
864 EXPECT_TRUE(notMatches("enum X {};", Matcher));
910 TEST(Matcher, BindMatchedNodes) {
934 TEST(Matcher, BindTheSameNameInAlternatives) {
951 TEST(Matcher, BindsIDForMemoizedResults) {
1038 TEST(Matcher, Cal
3679 auto Matcher = binaryOperator(unless(isInTemplateInstantiation())); local
4247 NestedNameSpecifierMatcher Matcher = nestedNameSpecifier( local
4256 NestedNameSpecifierMatcher Matcher = nestedNameSpecifier( local
[all...]
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyTraverse.h371 MatchComparator Matcher; local
372 return Matcher.compare(E1, E2);
/external/slf4j/log4j-over-slf4j/compatibility/lib/
H A Dlogback-core-0.9.8-SNAPSHOT.jarMETA-INF/ META-INF/MANIFEST.MF ch/ ch/qos/ ch/qos/logback/ ch/qos/logback/core/ ...
/external/libphonenumber/lib/
H A Djunit-4.8.1.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...
/external/owasp/sanitizer/lib/junit/
H A Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/extensions/ junit/framework/ junit/runner/ junit/textui/ org/ ...

Completed in 916 milliseconds

12