Home
last modified time | relevance | path

Searched refs:startsWith (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.h121 template <typename... Ts> bool startsWith(Ts... Tokens) const { in startsWith() function
152 return startsWith(tok::kw_namespace) || startsWith(TT_NamespaceMacro) || in startsWithNamespace()
153 startsWith(tok::kw_inline, tok::kw_namespace) || in startsWithNamespace()
154 startsWith(tok::kw_export, tok::kw_namespace); in startsWithNamespace()
159 return startsWith(tok::kw_export, tok::l_brace); in startsWithExportBlock()
H A DTokenAnnotator.cpp43 return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if) || in startsWithInitStatement()
44 Line.startsWith(tok::kw_switch); in startsWithInitStatement()
249 if (MaybeAngles && InExpr && !Line.startsWith(tok::kw_template) && in parseAngle()
353 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
354 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
697 bool InsideInlineASM = Line.startsWith(tok::kw_asm); in parseSquare()
1372 Line.startsWith(TT_ObjCMethodSpecifier)) { in consumeToken()
1378 Line.startsWith(TT_ObjCMethodSpecifier) && in consumeToken()
1415 !Line.startsWith(tok::kw_typedef, tok::kw_enum)) { in consumeToken()
1548 !Contexts.back().IsExpression && !Line.startsWith(TT_ObjCProperty) && in consumeToken()
[all …]
H A DUnwrappedLineFormatter.cpp26 return Line.startsWith(tok::kw_extern) && Next && Next->isStringLiteral() && in startsExternCBlock()
169 if (!Line->startsWith(tok::r_brace)) in getMatchingNamespaceToken()
697 if (I + 2 != E && Line.startsWith(tok::kw_if) && in tryMergeSimpleControlStatement()
1428 PreviousLine && PreviousLine->startsWith(tok::r_brace); in format()
1432 !TheLine.startsWith(TT_NamespaceRBrace)); in format()
1549 PreviousLine->startsWith(tok::l_brace)) && in computeNewlines()
1563 if (Line.startsWith(TT_NamespaceRBrace)) { in computeNewlines()
1566 else if (!PreviousLine->startsWith(TT_NamespaceRBrace)) in computeNewlines()
H A DUsingDeclarationsSorter.cpp220 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DFormat.cpp2872 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) { in checkEmptyNamespace()
2880 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace)) in checkEmptyNamespace()
H A DContinuationIndenter.cpp482 State.Line->startsWith(TT_ObjCMethodSpecifier)) { in mustBreak()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DUnicodeNameToCodepoint.cpp120 static bool startsWith(StringRef Name, StringRef Needle, bool Strict, in startsWith() function
184 bool DoesStartWith = N.IsRoot || startsWith(Name, N.Name, Strict, Consummed, in compareNode()
272 startsWith(Name, Syllable, Strict, Consummed, PreviousInNameCopy); in findSyllable()
292 startsWith(Name, "HANGUL SYLLABLE ", Strict, Consummed, NameStart); in nameToHangulCodePoint()
350 bool DoesStartWith = startsWith(Name, Item.Prefix, Strict, Consummed, in nameToGeneratedCodePoint()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangle.cpp63 static bool startsWith(std::string_view S, std::string_view PrefixA, in startsWith() function
2349 } else if (startsWith(MangledName, "$1", "1", !IsAutoNTTP) || in demangleTemplateParameterList()
2350 startsWith(MangledName, "$H", "H", !IsAutoNTTP) || in demangleTemplateParameterList()
2351 startsWith(MangledName, "$I", "I", !IsAutoNTTP) || in demangleTemplateParameterList()
2352 startsWith(MangledName, "$J", "J", !IsAutoNTTP)) { in demangleTemplateParameterList()
2402 } else if (startsWith(MangledName, "$F", "F", !IsAutoNTTP) || in demangleTemplateParameterList()
2403 startsWith(MangledName, "$G", "G", !IsAutoNTTP)) { in demangleTemplateParameterList()
/freebsd/contrib/bsnmp/tests/
H A Dcatch.hpp3154 bool startsWith( std::string const& s, std::string const& prefix );
3155 bool startsWith( std::string const& s, char prefix );
4865 if( startsWith( methodName, "Catch_TestCase_" ) ) { in registerTestMethods()
9646 if( !line.empty() && !startsWith( line, '#' ) ) { in makeCommandLineParser()
9647 if( !startsWith( line, '"' ) ) in makeCommandLineParser()
9661 if( startsWith( "declared", order ) ) in makeCommandLineParser()
9663 else if( startsWith( "lexical", order ) ) in makeCommandLineParser()
9665 else if( startsWith( "random", order ) ) in makeCommandLineParser()
11124 if( startsWith( testCaseInfo.name, '#' ) ) in listTestsNamesOnly()
11605 return startsWith( m_comparator.adjustString( source ), m_comparator.m_str ); in match()
[all …]