Searched refs:Matches (Results 1 - 25 of 50) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/lib/TableGen/
H A DStringMatcher.cpp29 StringMatcher::StringPair*> &Matches) {
30 assert(!Matches.empty());
31 for (unsigned i = 0, e = Matches[0]->first.size(); i != e; ++i) {
33 char Letter = Matches[0]->first[i];
35 for (unsigned str = 0, e = Matches.size(); str != e; ++str)
36 if (Matches[str]->first[i] != Letter)
40 return Matches[0]->first.size();
49 const std::vector<const StringPair *> &Matches, unsigned CharNo,
51 assert(!Matches.empty() && "Must have at least one string to match!");
56 if (CharNo == Matches[
28 FindFirstNonCommonLetter(const std::vector<const StringMatcher::StringPair*> &Matches) argument
48 EmitStringMatcherForChar( const std::vector<const StringPair *> &Matches, unsigned CharNo, unsigned IndentCount, bool IgnoreDuplicates) const argument
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeEnumTypes.cpp26 : Matches(), Index(0), Session(PDBSession) {
34 Matches.push_back(*TI);
43 Matches.push_back(*TI);
52 : Matches(std::move(Indices)), Index(0), Session(PDBSession) {}
55 return static_cast<uint32_t>(Matches.size());
59 if (N < Matches.size()) {
60 SymIndexId Id = Session.getSymbolCache().findSymbolByTypeIndex(Matches[N]);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DRegex.cpp82 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, argument
92 unsigned nmatch = Matches ? preg->re_nsub+1 : 0;
114 if (Matches) { // match position requested
115 Matches->clear();
120 Matches->push_back(StringRef());
124 Matches->push_back(StringRef(String.data()+pm[i].rm_so,
134 SmallVector<StringRef, 8> Matches; local
137 if (!match(String, &Matches, Error))
142 std::string Res(String.begin(), Matches[0].begin());
190 RefValue < Matches
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DStringMatcher.h28 /// If a match is found, the code in Matches[i].second is executed; control must
36 const std::vector<StringPair> &Matches; member in class:llvm::StringMatcher
42 : StrVariableName(strVariableName), Matches(matches), OS(os) {}
47 bool EmitStringMatcherForChar(const std::vector<const StringPair *> &Matches,
/freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/
H A DClangCommentHTMLTagsEmitter.cpp24 std::vector<StringMatcher::StringPair> Matches; local
26 Matches.emplace_back(Tag->getValueAsString("Spelling"), "return true;");
32 StringMatcher("Name", Matches, OS).Emit();
H A DClangCommentCommandInfoEmitter.cpp63 std::vector<StringMatcher::StringPair> Matches; local
69 Matches.emplace_back(std::move(Name), std::move(Return));
74 StringMatcher("Name", Matches, OS).Emit();
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DExprMutationAnalyzer.h53 const Stmt *findExprMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
54 const Stmt *findDeclMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
56 findExprPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
58 findDeclPointeeMutation(ArrayRef<ast_matchers::BoundNodes> Matches);
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DGCDAntipatternChecker.cpp214 auto Matches = match(SemaphoreMatcherM, *D->getBody(), AM.getASTContext()); local
215 for (BoundNodes Match : Matches)
219 Matches = match(GroupMatcherM, *D->getBody(), AM.getASTContext());
220 for (BoundNodes Match : Matches)
H A DRunLoopAutoreleaseLeakChecker.cpp168 auto Matches = match(GroupM, *D, AM.getASTContext()); local
169 for (BoundNodes Match : Matches)
188 auto Matches = match(GroupM, *D, AM.getASTContext()); local
190 for (BoundNodes Match : Matches)
H A DOSObjectCStyleCast.cpp78 auto Matches = match(stmt(forEachDescendant(CastM)), *D->getBody(), AM.getASTContext()); local
79 for (BoundNodes Match : Matches)
H A DPointerIterationChecker.cpp87 auto Matches = match(MatcherM, *D, AM.getASTContext()); local
88 for (const auto &Match : Matches)
H A DPointerSortingChecker.cpp100 auto Matches = match(MatcherM, *D, AM.getASTContext()); local
101 for (const auto &Match : Matches)
H A DObjCAutoreleaseWriteChecker.cpp201 auto Matches = match(MatcherM, *D, AM.getASTContext()); local
202 for (BoundNodes Match : Matches)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DNativeEnumTypes.h39 std::vector<codeview::TypeIndex> Matches; member in class:llvm::pdb::NativeEnumTypes
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp70 auto Matches = match(findAll(stmt(hasDescendant(varDecl(hasType(referenceType())).bind(MatchRef)))), local
72 for (BoundNodes Match : Matches) {
H A DLoopUnrolling.cpp207 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx);
208 if (Matches.empty())
211 auto CounterVar = Matches[0].getNodeAs<VarDecl>("initVarName");
213 Matches[0].getNodeAs<IntegerLiteral>("boundNum")->getValue();
215 Matches[0].getNodeAs<IntegerLiteral>("initNum")->getValue();
216 auto CondOp = Matches[0].getNodeAs<BinaryOperator>("conditionOperator");
/freebsd-11-stable/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp85 const Stmt *tryEachMatch(ArrayRef<ast_matchers::BoundNodes> Matches, argument
88 for (const auto &Nodes : Matches) {
184 ExprMutationAnalyzer::findExprMutation(ArrayRef<BoundNodes> Matches) { argument
185 return tryEachMatch<Expr>(Matches, this, &ExprMutationAnalyzer::findMutation);
189 ExprMutationAnalyzer::findDeclMutation(ArrayRef<BoundNodes> Matches) { argument
190 return tryEachMatch<Decl>(Matches, this, &ExprMutationAnalyzer::findMutation);
194 ArrayRef<ast_matchers::BoundNodes> Matches) {
195 return tryEachMatch<Expr>(Matches, this,
200 ArrayRef<ast_matchers::BoundNodes> Matches) {
201 return tryEachMatch<Decl>(Matches, thi
193 findExprPointeeMutation( ArrayRef<ast_matchers::BoundNodes> Matches) argument
199 findDeclPointeeMutation( ArrayRef<ast_matchers::BoundNodes> Matches) argument
286 const auto Matches = local
390 const auto Matches = match( local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DRegex.h72 /// \param Matches - If given, on a successful match this will be filled in
80 bool match(StringRef String, SmallVectorImpl<StringRef> *Matches = nullptr,
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Core/
H A DModuleSpec.h246 bool Matches(const ModuleSpec &match_module_spec, function in class:lldb_private::ModuleSpec
357 if (spec.Matches(module_spec, exact_arch_match)) {
367 if (spec.Matches(module_spec, exact_arch_match)) {
383 if (spec.Matches(module_spec, exact_arch_match))
393 if (spec.Matches(module_spec, exact_arch_match))
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/freebsd/
H A DHost.cpp216 if (match_info.Matches(process_info) &&
219 if (match_info.Matches(process_info))
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/openbsd/
H A DHost.cpp192 if (match_info.Matches(process_info) &&
195 if (match_info.Matches(process_info))
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/netbsd/
H A DHost.cpp218 if (match_info.Matches(process_info) &&
221 if (match_info.Matches(process_info))
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp215 SmallVectorImpl<std::pair<DeclAccessPair, FunctionDecl *>> &Matches) {
216 if (Matches.size() <= 1)
226 // Find the best call preference among the functions in Matches.
228 Matches.begin(), Matches.end(),
232 llvm::erase_if(Matches,
/freebsd-11-stable/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp255 SmallVector<StringRef, 4> Matches;
258 if (IncludeRegex.match(Line, &Matches)) {
262 Include(Matches[2],
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp234 AlignTokenSequence(unsigned Start, unsigned End, unsigned Column, F &&Matches, argument
241 // We only run the "Matches" function on tokens from the outer-most scope.
278 if (!FoundMatchOnLine && !InsideNestedScope && Matches(Changes[i])) {
329 static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, argument
363 AlignTokenSequence(StartOfSequence, EndOfSequence, MinColumn, Matches,
391 unsigned StoppedAt = AlignTokens(Style, Matches, Changes, i);
396 if (!Matches(Changes[i]))

Completed in 187 milliseconds

12