Home
last modified time | relevance | path

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

1234

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A 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();
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DRegex.cpp24 Regex::Regex() : preg(nullptr), error(REG_BADPAT) {} in Regex() function in Regex
26 Regex::Regex(StringRef regex, RegexFlags Flags) { in Regex() function in Regex
39 Regex::Regex(StringRef regex, unsigned Flags) in Regex() function in Regex
40 : Regex(regex, static_cast<RegexFlags>(Flags)) {} in Regex()
42 Regex::Regex(Regex &&regex) { in Regex() function in Regex
49 Regex::~Regex() { in ~Regex()
69 bool Regex::isValid(std::string &Error) const { in isValid()
79 unsigned Regex::getNumMatches() const { in getNumMatches()
137 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
232 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE()
[all …]
H A DSpecialCaseList.cpp45 Regex CheckRE(Regexp); in insert()
51 std::make_unique<Regex>(std::move(CheckRE)), LineNumber)); in insert()
74 for (const auto &[Regex, LineNumber] : RegExes) in match()
75 if (Regex->match(Query)) in match()
/freebsd-14.2/
H A D.clang-format112 - Regex: '^\"opt_.*\.h\"'
115 - Regex: '^<sys/cdefs\.h>'
127 - Regex: '^<sys.*/'
130 - Regex: '^<vm/vm\.h>'
133 - Regex: '^<vm/'
136 - Regex: '^<machine/'
142 - Regex: '^<dev/'
145 - Regex: '^<net.*/'
148 - Regex: '^<protocols/'
154 - Regex: '^<[^/].*\.h'
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A 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 …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DBreakableToken.h158 const llvm::Regex &CommentPragmasRegex) const = 0;
193 const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
263 const llvm::Regex &CommentPragmasRegex) const override;
345 const llvm::Regex &CommentPragmasRegex) const override;
356 const llvm::Regex &CommentPragmasRegex) const = 0;
410 const llvm::Regex &CommentPragmasRegex) const override;
422 const llvm::Regex &CommentPragmasRegex) const override;
431 const llvm::Regex &CommentPragmasRegex) const override;
494 const llvm::Regex &CommentPragmasRegex) const override;
501 const llvm::Regex &CommentPragmasRegex) const override;
H A 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()
H A DFormatTokenLexer.h141 llvm::Regex MacroBlockBeginRegex;
142 llvm::Regex MacroBlockEndRegex;
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A 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;
/freebsd-14.2/contrib/llvm-project/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.h58 StringRef Regex; variable
61 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {} in NameRegexCoverageFilter() argument
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A 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 …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/
H A DMultilib.cpp149 const llvm::Regex Regex(RegexString); in expandFlags() local
150 assert(Regex.isValid()); in expandFlags()
152 [&Regex](StringRef F) { return Regex.match(F); })) { in expandFlags()
238 llvm::Regex Regex(M.Match); in validate() local
240 if (!Regex.isValid(RegexError)) in validate()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-remarkutil/
H A DRemarkCounter.h51 Regex FilterRE;
56 FilterRE = Regex(Filter); in FilterMatcher()
100 inline Error checkRegex(const Regex &Regex) { in checkRegex() argument
102 if (!Regex.isValid(Error)) in checkRegex()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DIncludeStyle.h59 std::string Regex; member
67 return Regex == Other.Regex && Priority == Other.Priority &&
H A DHeaderIncludes.h45 SmallVector<llvm::Regex, 4> CategoryRegexs;
87 static const llvm::Regex IncludeRegex;
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/
H A DCommonConfig.cpp37 case MatchStyle::Regex: { in create()
38 Regex RegEx(Pattern); in create()
45 return NameOrPattern(std::make_shared<Regex>( in create()
/freebsd-14.2/contrib/libcbor/
H A D.clang-format65 - Regex: '^<ext/.*\.h>'
67 - Regex: '^<.*\.h>'
69 - Regex: '^<.*'
71 - Regex: '.*'
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A 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);
/freebsd-14.2/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkStreamer.cpp35 Regex R = Regex(Filter); in setFilter()
/freebsd-14.2/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/
H A DLVOptions.cpp415 Match.RE = std::make_shared<Regex>(Pattern, IgnoreCase ? Regex::IgnoreCase in createMatchEntry()
416 : Regex::NoFlags); in createMatchEntry()
423 Match.Mode = LVMatchMode::Regex; in createMatchEntry()
520 case LVMatchMode::Regex: in matchPattern()
/freebsd-14.2/contrib/bmake/unit-tests/
H A Dvarmod-subst-regex.exp1 make: Regex compilation error: (details omitted)
21 make: Regex compilation error: (details omitted)
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.h342 std::shared_ptr<llvm::Regex> Regex; member
349 bool hasValidPattern() const { return Regex != nullptr; } in hasValidPattern()
353 return hasValidPattern() && Regex->match(String); in patternMatches()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DDiagnosticHandler.cpp25 std::shared_ptr<Regex> Pattern;
30 Pattern = std::make_shared<Regex>(Val); in operator =()
/freebsd-14.2/contrib/sqlite3/
H A DReplace.cs155 Regex regEx = new Regex(args[0]); in Main()

1234