reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Format/TokenAnnotator.cpp
  146           !Line.startsWith(tok::kw_template))
  186                (Line.startsWith(Keywords.kw_type, tok::identifier) ||
  187                 Line.startsWith(tok::kw_export, Keywords.kw_type,
  213     } else if (Line.InPPDirective &&
  228     } else if (!Line.MustBeDeclaration && !Line.InPPDirective) {
  228     } else if (!Line.MustBeDeclaration && !Line.InPPDirective) {
  284              (CurrentToken->Next->is(tok::l_square) && Line.MustBeDeclaration)))
  467     bool InsideInlineASM = Line.startsWith(tok::kw_asm);
  758       if (!Tok->Previous && Line.MustBeDeclaration)
  768              !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) ||
  774              Line.MustBeDeclaration)) { // method/property declaration
  789                  Line.startsWith(TT_ObjCMethodSpecifier)) {
  795             Line.startsWith(TT_ObjCMethodSpecifier) &&
  821                  !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) {
  887       if (Line.MustBeDeclaration && Contexts.size() == 1 &&
  888           !Contexts.back().IsExpression && !Line.startsWith(TT_ObjCProperty) &&
  892         Line.MightBeFunctionDecl = true;
  977       if (Line.MustBeDeclaration && !Contexts.back().IsExpression &&
  991                (Contexts.size() == 1 || Line.startsWith(tok::kw_for))) {
  993         Line.IsMultiVariableDeclStmt = true;
 1146     if (CurrentToken->is(tok::less) && Line.Last->is(tok::greater)) {
 1153     if (Style.Language == FormatStyle::LK_Proto && Line.Level == 0 &&
 1181         if (Line.First->is(tok::kw_export) &&
 1196     if (Line.startsWith(TT_ObjCMethodSpecifier)) {
 1296         !Line.First->isOneOf(tok::kw_template, tok::kw_using, tok::kw_return) &&
 1300           (Line.startsWith(Keywords.kw_type, tok::identifier) ||
 1301            Line.startsWith(tok::kw_export, Keywords.kw_type,
 1305       if (!Line.startsWith(TT_UnaryOperator)) {
 1343       if (Line.MustBeDeclaration && !Contexts.front().InCtorInitializer)
 1382                (!Line.MightBeFunctionDecl || Current.NestingLevel != 0)) {
 1395     } else if (Current.is(tok::arrow) && AutoFound && Line.MustBeDeclaration &&
 1415           Line.MustBeDeclaration && !Contexts.back().IsExpression) {
 1501                Line.MightBeFunctionDecl && Contexts.size() == 1) {