Home
last modified time | relevance | path

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

12345

/openbsd/src/gnu/llvm/llvm/include/llvm/Support/
DRegex.h28 class Regex {
48 Regex();
53 Regex(StringRef Regex, RegexFlags Flags = NoFlags);
54 Regex(StringRef Regex, unsigned Flags);
55 Regex(const Regex &) = delete;
56 Regex &operator=(Regex regex) {
61 Regex(Regex &&regex);
62 ~Regex();
/openbsd/src/gnu/llvm/llvm/lib/Support/
DRegex.cpp27 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
29 Regex::Regex(StringRef regex, RegexFlags Flags) { in Regex() function in Regex
42 Regex::Regex(StringRef regex, unsigned Flags) in Regex() function in Regex
43 : Regex(regex, static_cast<RegexFlags>(Flags)) {} in Regex()
45 Regex::Regex(Regex &&regex) { in Regex() function in Regex
52 Regex::~Regex() { in ~Regex()
72 bool Regex::isValid(std::string &Error) const { in isValid()
82 unsigned Regex::getNumMatches() const { in getNumMatches()
86 bool Regex::match(StringRef String, SmallVectorImpl<StringRef> *Matches, in match()
136 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
[all …]
DTrigramIndex.cpp29 void TrigramIndex::insert(const std::string &Regex) { in insert() argument
36 for (unsigned Char : Regex) { in insert()
DSpecialCaseList.cpp36 if (Regex::isLiteralERE(Regexp)) { in insert()
51 Regex CheckRE(Regexp); in insert()
56 std::make_pair(std::make_unique<Regex>(std::move(CheckRE)), LineNumber)); in insert()
152 Regex CheckRE(Section); in parse()
/openbsd/src/gnu/llvm/clang/lib/ASTMatchers/Dynamic/
DMarshallers.cpp112 static constexpr std::pair<llvm::StringRef, llvm::Regex::RegexFlags>
114 {"NoFlags", llvm::Regex::RegexFlags::NoFlags},
115 {"IgnoreCase", llvm::Regex::RegexFlags::IgnoreCase},
116 {"Newline", llvm::Regex::RegexFlags::Newline},
117 {"BasicRegex", llvm::Regex::RegexFlags::BasicRegex},
120 static std::optional<llvm::Regex::RegexFlags>
137 std::optional<llvm::Regex::RegexFlags>
139 llvm::Regex::RegexFlags>::getFlags(llvm::StringRef Flags) { in getFlags()
140 std::optional<llvm::Regex::RegexFlags> Flag; in getFlags()
144 if (std::optional<llvm::Regex::RegexFlags> NextFlag = in getFlags()
[all …]
DMarshallers.h220 template <> struct ArgTypeTraits<llvm::Regex::RegexFlags> {
222 static std::optional<llvm::Regex::RegexFlags> getFlags(llvm::StringRef Flags);
232 static llvm::Regex::RegexFlags get(const VariantValue &Value) {
802 llvm::Regex::RegexFlags),
839 if (!ArgTypeTraits<llvm::Regex::RegexFlags>::hasCorrectType(
842 << 2 << ArgTypeTraits<llvm::Regex::RegexFlags>::getKind().asString()
846 if (!ArgTypeTraits<llvm::Regex::RegexFlags>::hasCorrectValue(
849 ArgTypeTraits<llvm::Regex::RegexFlags>::getBestGuess(
861 ArgTypeTraits<llvm::Regex::RegexFlags>::get(Args[1].Value)));
865 ReturnType (*const WithFlags)(StringRef, llvm::Regex::RegexFlags);
[all …]
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.brendan/
Dtemplate17.C3 struct Regex { int i; Regex(char *, int); }; struct
7 static const Regex pattern;
11 const Regex NDAMName<'L'>::pattern("^[Ll](.*)$", 1);// ERROR - type/value.*
/openbsd/src/gnu/llvm/clang/lib/Format/
DBreakableToken.h158 const llvm::Regex &CommentPragmasRegex) const = 0;
193 const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
258 const llvm::Regex &CommentPragmasRegex) const override;
301 const llvm::Regex &CommentPragmasRegex) const override;
312 const llvm::Regex &CommentPragmasRegex) const = 0;
366 const llvm::Regex &CommentPragmasRegex) const override;
378 const llvm::Regex &CommentPragmasRegex) const override;
387 const llvm::Regex &CommentPragmasRegex) const override;
450 const llvm::Regex &CommentPragmasRegex) const override;
457 const llvm::Regex &CommentPragmasRegex) const override;
DNamespaceEndCommentsFixer.cpp171 static const llvm::Regex NamespaceCommentPattern = in validEndComment()
172 llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *" in validEndComment()
174 llvm::Regex::IgnoreCase); in validEndComment()
175 static const llvm::Regex NamespaceMacroCommentPattern = in validEndComment()
176 llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *" in validEndComment()
178 llvm::Regex::IgnoreCase); in validEndComment()
209 static const llvm::Regex CommentPattern = llvm::Regex( in validEndComment()
210 "^/[/*] *( +([a-zA-Z0-9:_]+))?\\.? *(\\*/)?$", llvm::Regex::IgnoreCase); in validEndComment()
DFormatTokenLexer.h130 llvm::Regex MacroBlockBeginRegex;
131 llvm::Regex MacroBlockEndRegex;
DBreakableToken.cpp105 static const auto kNumberedListRegexp = llvm::Regex("^[1-9][0-9]?\\."); in getCommentSplit()
281 unsigned ContentStartColumn, const llvm::Regex &CommentPragmasRegex) const { in getSplit()
307 const llvm::Regex &CommentPragmasRegex) const { in getSplit()
352 static const auto kNumberedListRegexp = llvm::Regex("^[1-9][0-9]?\\. "); in mayReflowContent()
495 unsigned ContentStartColumn, const llvm::Regex &CommentPragmasRegex) const { in getSplit()
632 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
740 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in mayReflow()
930 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
1039 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in mayReflow()
/openbsd/src/gnu/llvm/llvm/tools/llvm-yaml-numeric-parser-fuzzer/
Dyaml-numeric-parser-fuzzer.cpp15 static llvm::Regex Infinity("^[-+]?(\\.inf|\\.Inf|\\.INF)$"); in isNumericRegex()
16 static llvm::Regex Base8("^0o[0-7]+$"); in isNumericRegex()
17 static llvm::Regex Base16("^0x[0-9a-fA-F]+$"); in isNumericRegex()
18 static llvm::Regex Float( in isNumericRegex()
/openbsd/src/gnu/llvm/llvm/include/llvm/DebugInfo/PDB/Native/
DLinePrinter.h96 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { in SetFilters()
108 std::list<Regex> ExcludeCompilandFilters;
109 std::list<Regex> ExcludeTypeFilters;
110 std::list<Regex> ExcludeSymbolFilters;
112 std::list<Regex> IncludeCompilandFilters;
113 std::list<Regex> IncludeTypeFilters;
114 std::list<Regex> IncludeSymbolFilters;
/openbsd/src/gnu/llvm/llvm/tools/llvm-cov/
DCoverageFilters.cpp30 return llvm::Regex(Regex).match(Function.Name); in matches()
34 return llvm::Regex(Regex).match(Filename); in matchesFilename()
DCoverageFilters.h58 StringRef Regex; variable
61 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {} in NameRegexCoverageFilter() argument
/openbsd/src/gnu/llvm/clang/include/clang/ASTMatchers/
DASTMatchersMacros.h464 std::shared_ptr<llvm::Regex> RE) \
472 std::shared_ptr<llvm::Regex> Param; \
476 llvm::StringRef Param, llvm::Regex::RegexFlags RegexFlags) { \
484 return DefineMatcher(Param, llvm::Regex::NoFlags); \
489 llvm::Regex::RegexFlags); \
516 std::shared_ptr<llvm::Regex> RE) \
524 std::shared_ptr<llvm::Regex> Param; \
529 std::shared_ptr<llvm::Regex>> \
530 DefineMatcher(llvm::StringRef Param, llvm::Regex::RegexFlags RegexFlags) { \
533 std::shared_ptr<llvm::Regex>>( \
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/Tooling/Inclusions/
DIncludeStyle.h59 std::string Regex; member
67 return Regex == Other.Regex && Priority == Other.Priority &&
DHeaderIncludes.h45 SmallVector<llvm::Regex, 4> CategoryRegexs;
87 static const llvm::Regex IncludeRegex;
/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
Dp784.C848 class Regex
852 Regex(const Regex&) {} // no X(X&) in Regex() argument
853 void operator = (const Regex&) {} // no assignment
860 Regex(const char* t,
865 ~Regex();
877 extern const Regex RXwhite; // = "[ \n\t\r\v\f]+"
878 extern const Regex RXint; // = "-?[0-9]+"
879 extern const Regex RXdouble; // = "-?\\(\\([0-9]+\\.[0-9]*\\)\\|
882 extern const Regex RXalpha; // = "[A-Za-z]+"
883 extern const Regex RXlowercase; // = "[a-z]+"
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/Basic/
DCodeGenOptions.h331 std::shared_ptr<llvm::Regex> Regex; member
334 OptRemark() : Kind(RK_Missing), Regex(nullptr) {} in OptRemark()
338 bool hasValidPattern() const { return Regex != nullptr; } in hasValidPattern()
342 return hasValidPattern() && Regex->match(String); in patternMatches()
/openbsd/src/gnu/llvm/clang/lib/Tooling/Inclusions/
DHeaderIncludes.cpp195 CategoryRegexs.emplace_back(Category.Regex, Category.RegexIsCaseSensitive in IncludeCategoryManager()
196 ? llvm::Regex::NoFlags in IncludeCategoryManager()
197 : llvm::Regex::IgnoreCase); in IncludeCategoryManager()
204 llvm::Regex MainFileRegex(Style.IncludeIsMainSourceRegex); in IncludeCategoryManager()
261 llvm::Regex MainIncludeRegex(HeaderStem.str() + Style.IncludeIsMainRegex, in isMainHeader()
262 llvm::Regex::IgnoreCase); in isMainHeader()
269 const llvm::Regex HeaderIncludes::IncludeRegex(IncludeRegexPattern);
/openbsd/src/gnu/llvm/llvm/lib/Remarks/
DRemarkStreamer.cpp35 Regex R = Regex(Filter); in setFilter()
/openbsd/src/gnu/llvm/lldb/tools/lldb-test/
Dlldb-test.cpp183 Regex("regex", variable
496 } else if (Regex) { in findFunctions()
521 assert(!Regex); in findBlocks()
610 if (Regex) { in findVariables()
766 if (Regex || !Context.empty() || !Name.empty() || !File.empty() || in getAction()
777 if (Regex || !Context.empty() || !Name.empty() || !File.empty() || in getAction()
787 if (Regex || !Context.empty() || !File.empty() || Line != 0) in getAction()
799 if (Regex && !Context.empty()) in getAction()
803 if (Regex && !RegularExpression(Name).IsValid()) in getAction()
806 if (Regex + !Context.empty() + !File.empty() >= 2) in getAction()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/IR/
DDiagnosticHandler.cpp25 std::shared_ptr<Regex> Pattern;
30 Pattern = std::make_shared<Regex>(Val); in operator =()
/openbsd/src/gnu/llvm/compiler-rt/lib/fuzzer/
DFuzzerUtilPosix.cpp182 std::string SearchRegexCmd(const std::string &Regex) { in SearchRegexCmd() argument
183 return "grep '" + Regex + "'"; in SearchRegexCmd()

12345