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

Declarations

include/llvm/Support/Regex.h
   80     bool match(StringRef String, SmallVectorImpl<StringRef> *Matches = nullptr,

References

lib/IR/AutoUpgrade.cpp
  526     if (vldRegex.match(Name)) {
  537     if (vstRegex.match(Name)) {
  602     if (R.match(Name, &Groups)) {
 4150   if (!R.match(DL, &Groups))
lib/IR/DiagnosticHandler.cpp
   76           PassRemarksAnalysisOptLoc.Pattern->match(PassName));
   80           PassRemarksMissedOptLoc.Pattern->match(PassName));
   84           PassRemarksPassedOptLoc.Pattern->match(PassName));
lib/IR/RemarkStreamer.cpp
  105     if (!Filter->match(Diag.getPassName()))
lib/Passes/PassBuilder.cpp
 1650     return DefaultAliasRegex.match(Name);
 1862     if (!DefaultAliasRegex.match(Name, &Matches))
lib/Support/FileCheck.cpp
  665   if (!Regex(RegExToMatch, Flags).match(Buffer, &MatchInfo))
 1078     if (!PrefixRE.match(Buffer, &Matches))
 1728   return Validator.match(CheckPrefix);
lib/Support/Regex.cpp
  137   if (!match(String, &Matches, Error))
lib/Support/SpecialCaseList.cpp
   67     if (RegExKV.first->match(Query))
lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
  132   if (!GenericRegPattern.match(UpperName, &Ops))
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  476     if (Re.match(Filename)) {
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
  298   return RE.match(Filename);
 2574   return RE.match(FullNameString);
 3163   return RE.match(SelectorString);
tools/clang/lib/AST/PrintfFormatString.cpp
  135       if (R.match(Str, &Matches)) {
tools/clang/lib/Analysis/CloneDetection.cpp
  164     if (IgnoredFilesRegex->match(Filename))
tools/clang/lib/CodeGen/CodeGenAction.cpp
   63               CodeGenOpts.OptimizationRemarkAnalysisPattern->match(PassName));
   67               CodeGenOpts.OptimizationRemarkMissedPattern->match(PassName));
   71               CodeGenOpts.OptimizationRemarkPattern->match(PassName));
  685         CodeGenOpts.OptimizationRemarkPattern->match(D.getPassName()))
  692         CodeGenOpts.OptimizationRemarkMissedPattern->match(D.getPassName()))
  704          CodeGenOpts.OptimizationRemarkAnalysisPattern->match(D.getPassName())))
  718        CodeGenOpts.OptimizationRemarkAnalysisPattern->match(D.getPassName())))
  731        CodeGenOpts.OptimizationRemarkAnalysisPattern->match(D.getPassName())))
tools/clang/lib/Driver/Multilib.cpp
  227   filterInPlace([&R](const Multilib &M) { return R.match(M.gccSuffix()); },
tools/clang/lib/Format/BreakableToken.cpp
   95     if (kNumberedListRegexp->match(Text.substr(SpaceOffset).ltrim(Blanks)))
  276   if (CommentPragmasRegex.match(Content[LineIndex]))
  321       hasSpecialMeaningPrefix || kNumberedListRegexp->match(Content);
  463   if (CommentPragmasRegex.match(Content[LineIndex]))
  717   return LineIndex > 0 && !CommentPragmasRegex.match(IndentContent) &&
  971   return LineIndex > 0 && !CommentPragmasRegex.match(IndentContent) &&
tools/clang/lib/Format/ContinuationIndenter.cpp
 1827         CommentPragmasRegex.match(Current.TokenText.substr(2)) ||
tools/clang/lib/Format/Format.cpp
 2021       if (IncludeRegex.match(Line, &Matches)) {
 2172     if (ImportRegex.match(Line, &Matches)) {
 2279              .match(Replace.getReplacementText());
 2335     bool Matched = IncludeRegex.match(IncludeDirective, &Matches);
tools/clang/lib/Format/FormatTokenLexer.cpp
  818       if (MacroBlockBeginRegex.match(Text)) {
  820       } else if (MacroBlockEndRegex.match(Text)) {
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
  106       NamespaceMacroCommentPattern->match(Comment->TokenText, &Groups)) {
  112              !NamespaceCommentPattern->match(Comment->TokenText, &Groups)) {
tools/clang/lib/Format/UnwrappedLineParser.cpp
 2511   if (CommentPragmasRegex.match(IndentContent))
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
  120     return Regex.match(S);
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
  506     if (R.match(FD->getType().getAsString()))
  508     if (R.match(FD->getName()))
tools/clang/lib/Tooling/AllTUsExecution.cpp
  103     if (RegexFilter.match(File))
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  193     if (CategoryRegexs[i].match(IncludeName)) {
  206     if (CategoryRegexs[i].match(IncludeName)) {
  225     if (MainIncludeRegex.match(FileStem))
  254     if (IncludeRegex.match(Line, &Matches)) {
tools/clang/tools/clang-refactor/TestSupport.cpp
  339     if (!RangeRegex.match(Comment, &Matches) || Comment.contains("CHECK")) {
  358       if (!EndLocRegex.match(Matches[3], &EndLocMatches)) {
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  804     if (RE.match(FromDeclName))
  912     return FilePatternRE.match(Filename);
 1037     if (!FilePatternRE.match(Entry.first))
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
   34       if (Pattern.match(E.first))
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.cpp
   37     if (Entry.first.match(Header))
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
  557                                getHeaderFilter()->match(FileName);
tools/clang/tools/extra/clang-tidy/GlobList.cpp
   57     if (Item.Regex.match(S))
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  295       if (IdentRE.match(Comment.second, &Matches) &&
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp
   49     if (!CheckCapsOnly && !llvm::Regex(RegExp).match(MacroName))
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp
   30     if (!TodoMatch.match(Text, &Matches))
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
   65     if (B.Kind == BK_Other && MatchPlaceholder.match(B.Tokens, &Matches)) {
tools/clang/tools/extra/clang-tidy/objc/PropertyDeclarationCheck.cpp
   85   return RegexExp.match(PropertyName);
   96   return RegexExp.match(PropertyName.substr(Start + 1));
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  281   if (Style.Case && !Matchers[static_cast<size_t>(*Style.Case)].match(Name))
  299       if (!Splitter.match(Substr, &Groups))
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
  142     if (NamespaceCommentPattern.match(Comment, &Groups)) {
tools/clang/tools/extra/clang-tidy/utils/Matchers.h
   53       return llvm::Regex(Name).match(Node.getName());
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
   95   if (!QueryDriverRegex.match(Driver)) {
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
  249       if (RegexFilter.match(U->body()))
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  121   while (RE.match(Pending, &Matches)) {
tools/clang/tools/extra/unittests/clang-include-fixer/FuzzySymbolIndexTests.cpp
   40   return llvm::Regex("^" + arg).match(Target);
tools/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp
   41   if (libcpp_regex.match(f.GetPath())) {
tools/lldb/source/Utility/RegularExpression.cpp
   28   return m_regex.match(str, matches);
tools/llvm-cov/CoverageFilters.cpp
   29   return llvm::Regex(Regex).match(Function.Name);
   33   return llvm::Regex(Regex).match(Filename);
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
  298       if (RE.match(Name)) {
tools/llvm-extract/llvm-extract.cpp
  175       if (RegEx.match(GA->getName())) {
  208       if (RegEx.match(GV.getName())) {
  242       if (RegEx.match(F->getName())) {
tools/llvm-objcopy/CopyConfig.h
  119     return R ? R->match(S) : G ? G->match(S) : Name == S;
tools/llvm-pdbutil/LinePrinter.cpp
   37   auto match_pred = [Item](llvm::Regex &R) { return R.match(Item); };
tools/llvm-pdbutil/llvm-pdbutil.cpp
 1402   if (!R.match(Str, &Matches))
tools/llvm-yaml-numeric-parser-fuzzer/yaml-numeric-parser-fuzzer.cpp
   25   if (Infinity.match(S))
   28   if (Base8.match(S))
   31   if (Base16.match(S))
   34   if (Float.match(S))
tools/polly/lib/Analysis/ScopDetection.cpp
  321     if (R.match(Str))
tools/sancov/sancov.cpp
  839   if (!SancovFileRegex.match(ShortFileName))
  861   return SymcovFileRegex.match(ShortFileName);
 1087       auto Ok = SancovFileRegex.match(ShortFileName, &Components);
unittests/IR/PassBuilderCallbacksTest.cpp
  311   return r.match(getName(arg));
unittests/Support/RegexTest.cpp
   22   EXPECT_TRUE(r1.match("916"));
   23   EXPECT_TRUE(r1.match("9"));
   24   EXPECT_FALSE(r1.match("9a"));
   28   EXPECT_TRUE(r2.match("aa216b", &Matches));
   33   EXPECT_TRUE(r3.match("9a:513b", &Matches));
   39   EXPECT_TRUE(r3.match("9:513b", &Matches));
   48   EXPECT_FALSE(r4.match("abb"));
   49   EXPECT_TRUE(r4.match(String, &Matches));
   57   EXPECT_FALSE(r5.match(String));
   58   EXPECT_FALSE(r5.match("X9"));
   60   EXPECT_TRUE(r5.match(String));
   66   EXPECT_TRUE(r1.match("abc_abc", &Matches));
   68   EXPECT_FALSE(r1.match("abc_ab", &Matches));
   71   EXPECT_TRUE(r2.match("a4b4c4", &Matches));
   74   EXPECT_FALSE(r2.match("a2b2c3"));
   77   EXPECT_TRUE(r3.match("a6zb6z", &Matches));
   81   EXPECT_FALSE(r3.match("a6zb6y"));
   82   EXPECT_FALSE(r3.match("a6zb7z"));
  145   EXPECT_TRUE(r2.match("916"));
  152   EXPECT_TRUE(r2.match("916"));
  170   EXPECT_FALSE(r1.match("X"));
utils/TableGen/CodeGenSchedule.cpp
  123             (!Regexpr || Regexpr->match(InstName.substr(Prefix.size())))) {
  150         if (!Regexpr || Regexpr->match(InstName.substr(Prefix.size()))) {