Home
last modified time | relevance | path

Searched refs:Regex (Results 1 – 25 of 62) sorted by relevance

123

/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DRegex.h28 class Regex {
46 Regex();
48 Regex(StringRef Regex, unsigned Flags = NoFlags);
49 Regex(const Regex &) = delete;
50 Regex &operator=(Regex regex) {
55 Regex(Regex &&regex);
56 ~Regex();
H A DSpecialCaseList.h64 class Regex; variable
128 std::vector<std::pair<std::unique_ptr<Regex>, unsigned>> RegExes;
/freebsd-12.1/contrib/llvm/lib/Support/
H A DRegex.cpp27 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
29 Regex::Regex(StringRef regex, unsigned Flags) { in Regex() function in Regex
42 Regex::Regex(Regex &&regex) { in Regex() function in Regex
49 Regex::~Regex() { in ~Regex()
56 bool Regex::isValid(std::string &Error) const { in isValid()
69 unsigned Regex::getNumMatches() const { in getNumMatches()
73 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches){ in match()
115 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
194 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE()
201 std::string Regex::escape(StringRef String) { in escape()
H A DSpecialCaseList.cpp37 if (Regex::isLiteralERE(Regexp)) { in insert()
52 Regex CheckRE(Regexp); in insert()
57 std::make_pair(make_unique<Regex>(std::move(CheckRE)), LineNumber)); in insert()
152 Regex CheckRE(Section); in parse()
H A DTrigramIndex.cpp33 void TrigramIndex::insert(std::string Regex) { in insert() argument
40 for (unsigned Char : Regex) { in insert()
H A DFileCheck.cpp213 RegExStr += Regex::escape(PatternStr.substr(0, FixedMatchEnd)); in ParsePattern()
227 Regex R(RS); in AddRegExToRegEx()
313 Value += Regex::escape(it->second); in Match()
327 if (!Regex(RegExToMatch, Regex::Newline).match(Buffer, &MatchInfo)) in Match()
701 FindFirstMatchingPrefix(Regex &PrefixRE, StringRef &Buffer, in FindFirstMatchingPrefix()
752 Regex &PrefixRE, in ReadCheckFile()
1321 Regex Validator("^[a-zA-Z0-9_-]*$"); in ValidateCheckPrefix()
1348 Regex llvm::FileCheck::buildCheckPrefixRegex() { in buildCheckPrefixRegex()
1364 return Regex(PrefixRegexStr); in buildCheckPrefixRegex()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DBreakableToken.h161 llvm::Regex &CommentPragmasRegex) const = 0;
196 llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
263 llvm::Regex &CommentPragmasRegex) const override;
306 llvm::Regex &CommentPragmasRegex) const override;
317 llvm::Regex &CommentPragmasRegex) const = 0;
380 llvm::Regex &CommentPragmasRegex) const override;
389 llvm::Regex &CommentPragmasRegex) const override;
453 llvm::Regex &CommentPragmasRegex) const override;
460 llvm::Regex &CommentPragmasRegex) const override;
H A DFormatTokenLexer.h108 llvm::Regex MacroBlockBeginRegex;
109 llvm::Regex MacroBlockEndRegex;
H A DNamespaceEndCommentsFixer.cpp66 static llvm::Regex *const NamespaceCommentPattern = in validEndComment()
67 new llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *" in validEndComment()
69 llvm::Regex::IgnoreCase); in validEndComment()
H A DBreakableToken.cpp93 static auto *const kNumberedListRegexp = new llvm::Regex("^[1-9][0-9]?\\."); in getCommentSplit()
247 unsigned ContentStartColumn, llvm::Regex &CommentPragmasRegex) const { in getSplit()
273 llvm::Regex &CommentPragmasRegex) const { in getSplit()
318 static auto *const kNumberedListRegexp = new llvm::Regex("^[1-9][0-9]?\\. "); in mayReflowContent()
589 llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
697 llvm::Regex &CommentPragmasRegex) const { in mayReflow()
835 unsigned LineIndex, llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
948 unsigned LineIndex, llvm::Regex &CommentPragmasRegex) const { in mayReflow()
/freebsd-12.1/contrib/llvm/tools/llvm-pdbutil/
H A DLinePrinter.h76 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { in SetFilters()
87 std::list<Regex> ExcludeCompilandFilters;
88 std::list<Regex> ExcludeTypeFilters;
89 std::list<Regex> ExcludeSymbolFilters;
91 std::list<Regex> IncludeCompilandFilters;
92 std::list<Regex> IncludeTypeFilters;
93 std::list<Regex> IncludeSymbolFilters;
/freebsd-12.1/contrib/llvm/tools/llvm-cov/
H A DCoverageFilters.cpp30 return llvm::Regex(Regex).match(Function.Name); in matches()
34 return llvm::Regex(Regex).match(Filename); in matchesFilename()
H A DCoverageFilters.h55 StringRef Regex; variable
58 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {} in NameRegexCoverageFilter() argument
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Tooling/Inclusions/
H A DIncludeStyle.h59 std::string Regex; member
63 return Regex == Other.Regex && Priority == Other.Priority;
H A DHeaderIncludes.h46 mutable SmallVector<llvm::Regex, 4> CategoryRegexs;
130 llvm::Regex IncludeRegex;
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DCodeGenOptions.h246 std::shared_ptr<llvm::Regex> OptimizationRemarkPattern;
253 std::shared_ptr<llvm::Regex> OptimizationRemarkMissedPattern;
261 std::shared_ptr<llvm::Regex> OptimizationRemarkAnalysisPattern;
/freebsd-12.1/contrib/llvm/tools/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp157 CategoryRegexs.emplace_back(Category.Regex, llvm::Regex::IgnoreCase); in IncludeCategoryManager()
184 llvm::Regex MainIncludeRegex(HeaderStem.str() + Style.IncludeIsMainRegex, in isMainHeader()
185 llvm::Regex::IgnoreCase); in isMainHeader()
201 IncludeRegex(llvm::Regex(IncludeRegexPattern)) { in HeaderIncludes()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DDiagnosticHandler.cpp26 std::shared_ptr<Regex> Pattern;
31 Pattern = std::make_shared<Regex>(Val); in operator =()
/freebsd-12.1/contrib/sqlite3/
H A DReplace.cs155 Regex regEx = new Regex(args[0]); in Main()
/freebsd-12.1/contrib/compiler-rt/lib/fuzzer/
H A DFuzzerUtilPosix.cpp146 std::string SearchRegexCmd(const std::string &Regex) { in SearchRegexCmd() argument
147 return "grep '" + Regex + "'"; in SearchRegexCmd()
H A DFuzzerUtilWindows.cpp190 std::string SearchRegexCmd(const std::string &Regex) { in SearchRegexCmd() argument
191 return "findstr /r \"" + Regex + "\""; in SearchRegexCmd()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Driver/
H A DMultilib.cpp217 MultilibSet &MultilibSet::FilterOut(const char *Regex) { in FilterOut() argument
218 llvm::Regex R(Regex); in FilterOut()
/freebsd-12.1/contrib/llvm/tools/llvm-extract/
H A Dllvm-extract.cpp145 Regex RegEx(ExtractRegExpAliases[i]); in main()
179 Regex RegEx(ExtractRegExpGlobals[i]); in main()
212 Regex RegEx(RegExStr); in main()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSymbolRewriter.cpp183 std::string Name = Regex(Pattern).sub(Transform, C.getName(), &Error); in performOnModule()
356 if (!Regex(Source).isValid(Error)) { in parseRewriteFunctionDescriptor()
425 if (!Regex(Source).isValid(Error)) { in parseRewriteGlobalVariableDescriptor()
488 if (!Regex(Source).isValid(Error)) { in parseRewriteGlobalAliasDescriptor()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DGCOVProfiling.cpp101 std::vector<Regex> createRegexesFromString(StringRef RegexesStr);
103 std::vector<Regex> &Regexes);
134 std::vector<Regex> FilterRe;
135 std::vector<Regex> ExcludeRe;
453 std::vector<Regex> GCOVProfiler::createRegexesFromString(StringRef RegexesStr) { in createRegexesFromString()
454 std::vector<Regex> Regexes; in createRegexesFromString()
458 Regex Re(HeadTail.first); in createRegexesFromString()
472 std::vector<Regex> &Regexes) { in doesFilenameMatchARegex()
473 for (Regex &Re : Regexes) { in doesFilenameMatchARegex()

123