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.h119 template <typename... Ts> bool startsWith(Ts... Tokens) const { in startsWith() function
150 return startsWith(tok::kw_namespace) || startsWith(TT_NamespaceMacro) || in startsWithNamespace()
151 startsWith(tok::kw_inline, tok::kw_namespace) || in startsWithNamespace()
152 startsWith(tok::kw_export, tok::kw_namespace); in startsWithNamespace()
H A DTokenAnnotator.cpp44 return Line.startsWith(tok::kw_for) || Line.startsWith(tok::kw_if) || in startsWithInitStatement()
45 Line.startsWith(tok::kw_switch); in startsWithInitStatement()
250 if (MaybeAngles && InExpr && !Line.startsWith(tok::kw_template) && in parseAngle()
356 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()
357 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()
701 bool InsideInlineASM = Line.startsWith(tok::kw_asm); in parseSquare()
1383 Line.startsWith(TT_ObjCMethodSpecifier)) { in consumeToken()
1389 Line.startsWith(TT_ObjCMethodSpecifier) && in consumeToken()
1557 !Contexts.back().IsExpression && !Line.startsWith(TT_ObjCProperty) && in consumeToken()
1558 !Line.startsWith(tok::l_paren) && in consumeToken()
[all …]
H A DUnwrappedLineFormatter.cpp26 return Line.startsWith(tok::kw_extern) && Next && Next->isStringLiteral() && in startsExternCBlock()
189 if (!Line->startsWith(tok::r_brace)) in getMatchingNamespaceToken()
653 if (I + 2 != E && Line.startsWith(tok::kw_if) && in tryMergeSimpleControlStatement()
1370 PreviousLine && PreviousLine->startsWith(tok::r_brace); in format()
1374 !TheLine.startsWith(tok::r_brace)); in format()
1491 PreviousLine->startsWith(tok::l_brace)) && in computeNewlines()
H A DUsingDeclarationsSorter.cpp221 if (Line->InPPDirective || !Line->startsWith(tok::kw_using) || in analyze()
H A DFormat.cpp2703 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) { in checkEmptyNamespace()
2711 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace)) in checkEmptyNamespace()
H A DContinuationIndenter.cpp456 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
2294 } else if (startsWith(MangledName, "$1", "1", !IsAutoNTTP) || in demangleTemplateParameterList()
2295 startsWith(MangledName, "$H", "H", !IsAutoNTTP) || in demangleTemplateParameterList()
2296 startsWith(MangledName, "$I", "I", !IsAutoNTTP) || in demangleTemplateParameterList()
2297 startsWith(MangledName, "$J", "J", !IsAutoNTTP)) { in demangleTemplateParameterList()
2347 } else if (startsWith(MangledName, "$F", "F", !IsAutoNTTP) || in demangleTemplateParameterList()
2348 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 …]