| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | RegexTest.cpp | 21 Regex r1("^[0-9]+$"); in TEST_F() 27 Regex r2("[0-9]+"); in TEST_F() 45 Regex r4("a[^b]+b"); in TEST_F() 56 Regex r5(NulPattern); in TEST_F() 64 Regex r1("([a-z]+)_\\1"); in TEST_F() 143 Regex r1("^[0-9]+$"); in TEST_F() 149 Regex r1("^[0-9]+$"); in TEST_F() 150 Regex r2("abc"); in TEST_F() 159 Regex r1; in TEST_F() 162 r1 = Regex("abc"); in TEST_F() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | Regex.h | 28 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 &®ex); 62 ~Regex();
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | Regex.cpp | 27 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 &®ex) { 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 …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | Matchers.h | 73 llvm::Regex Regex; variable 88 NameMatcher(const llvm::StringRef Regex) in NameMatcher() argument 89 : Regex(Regex), Mode(determineMatchMode(Regex)) {} in NameMatcher() 94 return Regex.match(ND.getQualifiedNameAsString()); in match() 96 return Regex.match("::" + ND.getQualifiedNameAsString()); in match() 98 return Regex.match(ND.getName()); in match() 103 MatchMode determineMatchMode(llvm::StringRef Regex) { in determineMatchMode() argument 104 if (Regex.startswith(":") || Regex.startswith("^:")) { in determineMatchMode() 107 return Regex.contains(":") ? MatchMode::MatchQualified in determineMatchMode()
|
| /llvm-project-15.0.7/third-party/benchmark/src/ |
| H A D | re.h | 61 class Regex { 63 Regex() : init_(false) {} in Regex() function 65 ~Regex(); 90 inline bool Regex::Init(const std::string& spec, std::string* error) { in Init() 109 inline Regex::~Regex() {} in ~Regex() 111 inline bool Regex::Match(const std::string& str) { in Match() 119 inline bool Regex::Init(const std::string& spec, std::string* error) { in Init() 142 inline Regex::~Regex() { in ~Regex() 148 inline bool Regex::Match(const std::string& str) { in Match()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Marshallers.cpp | 116 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 …]
|
| /llvm-project-15.0.7/clang/lib/Format/ |
| H A D | BreakableToken.h | 158 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 D | NamespaceEndCommentsFixer.cpp | 171 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()
|
| /llvm-project-15.0.7/flang/ |
| H A D | .clang-format | 11 - Regex: '^<' 13 - Regex: '^"(llvm|llvm-c|clang|clang-c)/' 15 - Regex: '^"(flang|\.\.)/' 17 - Regex: '.*'
|
| /llvm-project-15.0.7/llvm/tools/llvm-yaml-numeric-parser-fuzzer/ |
| H A D | yaml-numeric-parser-fuzzer.cpp | 15 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()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierLengthCheck.h | 38 llvm::Regex IgnoredVariableNames; 41 llvm::Regex IgnoredLoopCounterNames; 44 llvm::Regex IgnoredExceptionVariableNames; 47 llvm::Regex IgnoredParameterNames;
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/PDB/Native/ |
| H A D | LinePrinter.h | 96 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;
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ConfigCompile.cpp | 106 llvm::Optional<llvm::Regex> 108 llvm::Regex::RegexFlags Flags = llvm::Regex::NoFlags) { in compileRegex() 110 llvm::Regex Result(Anchored, Flags); in compileRegex() 208 llvm::Regex::RegexFlags Flags = llvm::Regex::IgnoreCase; in compile() 210 llvm::Regex::RegexFlags Flags = llvm::Regex::NoFlags; in compile() 521 static llvm::Regex::RegexFlags Flags = llvm::Regex::IgnoreCase; in compile() 523 static llvm::Regex::RegexFlags Flags = llvm::Regex::NoFlags; in compile() 525 auto Filters = std::make_shared<std::vector<llvm::Regex>>(); in compile() 529 llvm::Regex CompiledRegex(AnchoredPattern, Flags); in compile() 544 for (auto &Regex : *Filters) in compile() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/ |
| H A D | GlobList.cpp | 29 static llvm::Regex consumeGlob(StringRef &GlobList) { in consumeGlob() 43 return llvm::Regex(RegexText); in consumeGlob() 51 Item.Regex = consumeGlob(Globs); in GlobList() 61 if (Item.Regex.match(S)) in contains()
|
| H A D | GlobList.h | 47 llvm::Regex Regex; member
|
| /llvm-project-15.0.7/llvm/tools/llvm-cov/ |
| H A D | CoverageFilters.cpp | 30 return llvm::Regex(Regex).match(Function.Name); in matches() 34 return llvm::Regex(Regex).match(Filename); in matchesFilename()
|
| H A D | CoverageFilters.h | 58 StringRef Regex; variable 61 NameRegexCoverageFilter(StringRef Regex) : Regex(Regex) {} in NameRegexCoverageFilter() argument
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchersMacros.h | 464 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 …]
|
| /llvm-project-15.0.7/clang/include/clang/Tooling/Inclusions/ |
| H A D | IncludeStyle.h | 59 std::string Regex; member 67 return Regex == Other.Regex && Priority == Other.Priority &&
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | CodeGenOptions.h | 311 std::shared_ptr<llvm::Regex> Regex; member 314 OptRemark() : Kind(RK_Missing), Regex(nullptr) {} in OptRemark() 318 bool hasValidPattern() const { return Regex != nullptr; } in hasValidPattern() 322 return hasValidPattern() && Regex->match(String); in patternMatches()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | ConflictingEvalCallsTest.cpp | 54 constexpr auto Regex = in TEST() local 58 ASSERT_DEATH(runCheckerOnCode<addEvalFooCheckers>(Code), Regex); in TEST()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Inclusions/ |
| H A D | HeaderIncludes.cpp | 195 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() 278 IncludeRegex(llvm::Regex(IncludeRegexPattern)) { in HeaderIncludes()
|
| /llvm-project-15.0.7/llvm/lib/ObjCopy/ |
| H A D | CommonConfig.cpp | 40 case MatchStyle::Regex: { in create() 42 return NameOrPattern(std::make_shared<Regex>( in create()
|
| /llvm-project-15.0.7/lldb/tools/lldb-test/ |
| H A D | lldb-test.cpp | 136 Regex("regex", variable 449 } else if (Regex) { in findFunctions() 473 assert(!Regex); in findBlocks() 562 if (Regex) { in findVariables() 752 if (Regex && !Context.empty()) in getAction() 756 if (Regex && !RegularExpression(Name).IsValid()) in getAction() 759 if (Regex + !Context.empty() + !File.empty() >= 2) in getAction() 762 if (Regex && Name.empty()) in getAction() 787 if (Regex || getFunctionNameFlags() != 0) in getAction() 793 if (Regex || !File.empty() || Line != 0) in getAction() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-include-fixer/ |
| H A D | FuzzySymbolIndexTests.cpp | 31 llvm::Regex Pattern("^" + arg); 40 return llvm::Regex("^" + arg).match(Target);
|