Home
last modified time | relevance | path

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

123

/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Support/
H A 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()
136 std::string Regex::sub(StringRef Repl, StringRef String, in sub()
212 bool Regex::isLiteralERE(StringRef Str) { in isLiteralERE()
[all …]
H A DTrigramIndex.cpp28 void TrigramIndex::insert(const std::string &Regex) { in insert() argument
35 for (unsigned Char : Regex) { in insert()
H A DSpecialCaseList.cpp37 if (Regex::isLiteralERE(Regexp)) { in insert()
52 Regex CheckRE(Regexp); in insert()
57 std::make_pair(std::make_unique<Regex>(std::move(CheckRE)), LineNumber)); in insert()
153 Regex CheckRE(Section); in parse()
/freebsd-13.1/
H A D.clang-format111 - Regex: '^\"opt_.*\.h\"'
114 - Regex: '^<sys/cdefs\.h>'
126 - Regex: '^<sys.*/'
129 - Regex: '^<vm/vm\.h>'
132 - Regex: '^<vm/'
135 - Regex: '^<machine/'
141 - Regex: '^<dev/'
144 - Regex: '^<net.*/'
147 - Regex: '^<protocols/'
153 - Regex: '^<[^/].*\.h'
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.cpp116 static constexpr std::pair<llvm::StringRef, llvm::Regex::RegexFlags>
118 {"NoFlags", llvm::Regex::RegexFlags::NoFlags},
119 {"IgnoreCase", llvm::Regex::RegexFlags::IgnoreCase},
120 {"Newline", llvm::Regex::RegexFlags::Newline},
121 {"BasicRegex", llvm::Regex::RegexFlags::BasicRegex},
124 static llvm::Optional<llvm::Regex::RegexFlags>
142 llvm::Optional<llvm::Regex::RegexFlags>
144 llvm::Regex::RegexFlags>::getFlags(llvm::StringRef Flags) { in getFlags()
145 llvm::Optional<llvm::Regex::RegexFlags> Flag; in getFlags()
149 if (llvm::Optional<llvm::Regex::RegexFlags> NextFlag = in getFlags()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A 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;
H A DNamespaceEndCommentsFixer.cpp93 static const llvm::Regex NamespaceCommentPattern = in validEndComment()
94 llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *" in validEndComment()
96 llvm::Regex::IgnoreCase); in validEndComment()
97 static const llvm::Regex NamespaceMacroCommentPattern = in validEndComment()
98 llvm::Regex("^/[/*] *(end (of )?)? *(anonymous|unnamed)? *" in validEndComment()
100 llvm::Regex::IgnoreCase); in validEndComment()
131 static const llvm::Regex CommentPattern = llvm::Regex( in validEndComment()
132 "^/[/*] *( +([a-zA-Z0-9:_]+))?\\.? *(\\*/)?$", llvm::Regex::IgnoreCase); in validEndComment()
H A DFormatTokenLexer.h119 llvm::Regex MacroBlockBeginRegex;
120 llvm::Regex MacroBlockEndRegex;
H A 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()
494 unsigned ContentStartColumn, const llvm::Regex &CommentPragmasRegex) const { in getSplit()
633 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
741 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in mayReflow()
904 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in getReflowSplit()
1014 unsigned LineIndex, const llvm::Regex &CommentPragmasRegex) const { in mayReflow()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-pdbutil/
H A DLinePrinter.h75 void SetFilters(std::list<Regex> &List, Iter Begin, Iter End) { in SetFilters()
86 std::list<Regex> ExcludeCompilandFilters;
87 std::list<Regex> ExcludeTypeFilters;
88 std::list<Regex> ExcludeSymbolFilters;
90 std::list<Regex> IncludeCompilandFilters;
91 std::list<Regex> IncludeTypeFilters;
92 std::list<Regex> IncludeSymbolFilters;
/freebsd-13.1/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-13.1/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-13.1/contrib/llvm-project/clang/include/clang/Tooling/Inclusions/
H A DIncludeStyle.h58 std::string Regex; member
66 return Regex == Other.Regex && Priority == Other.Priority &&
H A DHeaderIncludes.h43 SmallVector<llvm::Regex, 4> CategoryRegexs;
127 llvm::Regex IncludeRegex;
/freebsd-13.1/contrib/libcbor/
H A D.clang-format65 - Regex: '^<ext/.*\.h>'
67 - Regex: '^<.*\.h>'
69 - Regex: '^<.*'
71 - Regex: '.*'
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.h292 std::shared_ptr<llvm::Regex> Regex; member
295 OptRemark() : Kind(RK_Missing), Pattern(""), Regex(nullptr) {} in OptRemark()
299 bool hasValidPattern() const { return Regex != nullptr; } in hasValidPattern()
303 return hasValidPattern() && Regex->match(String); in patternMatches()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Inclusions/
H A DHeaderIncludes.cpp194 CategoryRegexs.emplace_back(Category.Regex, Category.RegexIsCaseSensitive in IncludeCategoryManager()
195 ? llvm::Regex::NoFlags in IncludeCategoryManager()
196 : llvm::Regex::IgnoreCase); in IncludeCategoryManager()
203 llvm::Regex MainFileRegex(Style.IncludeIsMainSourceRegex); in IncludeCategoryManager()
260 llvm::Regex MainIncludeRegex(HeaderStem.str() + Style.IncludeIsMainRegex, in isMainHeader()
261 llvm::Regex::IgnoreCase); in isMainHeader()
277 IncludeRegex(llvm::Regex(IncludeRegexPattern)) { in HeaderIncludes()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Remarks/
H A DRemarkStreamer.cpp33 Regex R = Regex(Filter); in setFilter()
/freebsd-13.1/contrib/bmake/unit-tests/
H A Dvarmod-subst-regex.exp1 make: Regex compilation error: (details omitted)
21 make: Regex compilation error: (details omitted)
/freebsd-13.1/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-13.1/contrib/sqlite3/
H A DReplace.cs155 Regex regEx = new Regex(args[0]); in Main()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/
H A DCommonConfig.h94 Regex, // Enabled with --regex. enumerator
100 std::shared_ptr<Regex> R;
105 NameOrPattern(std::shared_ptr<Regex> R) : R(R) {} in NameOrPattern()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/FileCheck/
H A DFileCheck.h192 Regex buildCheckPrefixRegex();
204 readCheckFile(SourceMgr &SM, StringRef Buffer, Regex &PrefixRE,

123