Searched refs:startsWith (Results 1 – 11 of 11) sorted by relevance
87 template <typename... Ts> bool startsWith(Ts... Tokens) const { in startsWith() function118 return startsWith(tok::kw_namespace) || startsWith(TT_NamespaceMacro) || in startsWithNamespace()119 startsWith(tok::kw_inline, tok::kw_namespace) || in startsWithNamespace()120 startsWith(tok::kw_export, tok::kw_namespace); in startsWithNamespace()
166 !Line.startsWith(tok::kw_template)) in parseAngle()246 (Line.startsWith(Keywords.kw_type, tok::identifier) || in parseParens()247 Line.startsWith(tok::kw_export, Keywords.kw_type, in parseParens()556 bool InsideInlineASM = Line.startsWith(tok::kw_asm); in parseSquare()914 Line.startsWith(TT_ObjCMethodSpecifier)) { in consumeToken()920 Line.startsWith(TT_ObjCMethodSpecifier) && in consumeToken()1019 !Contexts.back().IsExpression && !Line.startsWith(TT_ObjCProperty) && in consumeToken()1136 (Contexts.size() == 1 || Line.startsWith(tok::kw_for))) { in consumeToken()1375 if (Line.startsWith(TT_ObjCMethodSpecifier)) { in parseLine()1497 (Line.startsWith(Keywords.kw_type, tok::identifier) || in modifyContext()[all …]
25 return Line.startsWith(tok::kw_extern) && Next && Next->isStringLiteral() && in startsExternCBlock()149 if (!Line->startsWith(tok::r_brace)) in getMatchingNamespaceToken()500 if (I + 2 != E && Line.startsWith(tok::kw_if) && in tryMergeSimpleControlStatement()589 Line.startsWith(tok::kw_if) && in tryMergeSimpleBlock()594 Line.startsWith(tok::kw_if) && in tryMergeSimpleBlock()1156 PreviousLine && PreviousLine->startsWith(tok::r_brace); in format()1160 !TheLine.startsWith(tok::r_brace)); in format()1280 PreviousLine->startsWith(tok::l_brace)) && in formatFirstToken()
194 !AnnotatedLines[I]->startsWith(tok::kw_using) || FirstTok->Finalized) { in analyze()
173 if (!Line->Affected || Line->InPPDirective || !Line->startsWith(tok::r_brace)) in getNamespaceToken()
1947 if (!AnnotatedLines[++CurrentLine]->startsWith(tok::l_brace)) { in checkEmptyNamespace()1955 if (AnnotatedLines[CurrentLine]->startsWith(tok::r_brace)) in checkEmptyNamespace()
399 State.Line->startsWith(TT_ObjCMethodSpecifier)) in mustBreak()
83 if (!startsWith(C)) in consumeFront()90 if (!startsWith(S)) in consumeFront()96 bool startsWith(char C) const { return !empty() && *begin() == C; } in startsWith() function98 bool startsWith(StringView Str) const { in startsWith() function
2436 if (StringView(First, Last).startsWith(S)) { in consumeIf()2776 if (Name.startsWith("_GLOBAL__N")) in parseSourceName()3687 if (Qual.startsWith("objcproto")) { in parseQualifiedType()
195 if (S.startsWith("$$Q")) // foo && in isPointerType()212 return S.startsWith("$$A8@@") || S.startsWith("$$A6"); in isFunctionType()485 assert(MangledName.startsWith('?')); in demangleFunctionIdentifierCode()755 assert(MangledName.startsWith("??@")); in demangleMD5Name()787 assert(MangledName.startsWith('.')); in demangleTypeinfoName()803 if (MangledName.startsWith('.')) in parse()806 if (MangledName.startsWith("??@")) in parse()810 if (!MangledName.startsWith('?')) { in parse()984 assert(MangledName.startsWith("?$")); in demangleTemplateInstantiationName()1035 if (!MangledName.startsWith('?')) in demangleCharLiteral()[all …]
159 if (!Mangled.startsWith("_R")) { in rustDemangle()