Lines Matching refs:IsCpp

87 static bool isCppAttribute(bool IsCpp, const FormatToken &Tok) {  in isCppAttribute()  argument
88 if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCppAttribute()
129 IsCpp(Style.isCpp()), LangOpts(getFormattingLangOpts(Style)), in AnnotatingParser()
131 assert(IsCpp == LangOpts.CXXOperatorNames); in AnnotatingParser()
688 IsCpp && Parent && Parent->is(TT_TemplateCloser) && in parseSquare()
694 isCppAttribute(IsCpp, *Left) || IsInnerSquare; in parseSquare()
702 bool IsCppStructuredBinding = Left->isCppStructuredBinding(IsCpp); in parseSquare()
705 IsCpp && !IsCpp11AttributeSpecifier && !IsCSharpAttributeSpecifier && in parseSquare()
734 } else if (IsCpp && Contexts.back().ContextKind == tok::l_brace && in parseSquare()
1220 (!Contexts.back().ColonIsDictLiteral || !IsCpp)) || in parseBrace()
1295 if (IsCpp) { in consumeToken()
1486 if (IsCpp && CurrentToken && CurrentToken->is(tok::kw_co_await)) in consumeToken()
2661 if (!IsCpp) in lParenStartsCppCast()
2687 if (!IsCpp && !Style.isCSharp() && Style.Language != FormatStyle::LK_Java) in rParenEndsCast()
2771 isCppAttribute(IsCpp, *AfterRParen)) { in rParenEndsCast()
3111 bool IsCpp; member in clang::format::__anonadd98d890111::AnnotatingParser
3666 if (IsCpp) { in annotate()
3747 const bool IsCpp = LangOpts.CXXOperatorNames; in isFunctionDeclarationName() local
3780 } else if (isCppAttribute(IsCpp, *Next)) { in isFunctionDeclarationName()
3816 if (IsCpp && Next->Next && Next->Next->is(tok::identifier) && in isFunctionDeclarationName()
3907 if (IsCpp && (LineIsFunctionDeclaration || First->is(TT_CtorDtorDeclName)) && in calculateFormattingInformation()
3920 if (IsCpp && SeenName && AfterLastAttribute && in calculateFormattingInformation()
3927 if (IsCpp) { in calculateFormattingInformation()
4854 assert(!IsVerilog || !IsCpp); in spaceRequiredBefore()
4867 if (IsCpp) { in spaceRequiredBefore()
5586 (IsCpp || Style.isProto() || in mustBreakBefore()