Home
last modified time | relevance | path

Searched refs:ColonLoc (Results 1 – 25 of 29) sorted by relevance

12

/freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/
DParseStmt.cpp639 SourceLocation ColonLoc = ConsumeToken(); in ParseLabeledStatement() local
671 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
678 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc, in ParseLabeledStatement()
719 SourceLocation ColonLoc; in ParseCaseStatement() local
723 ColonLoc = SourceLocation(); in ParseCaseStatement()
764 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement()
765 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement()
766 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement()
768 Diag(ColonLoc, diag::err_expected_after) in ParseCaseStatement()
770 << FixItHint::CreateReplacement(ColonLoc, ":"); in ParseCaseStatement()
[all …]
DParseInit.cpp177 SourceLocation ColonLoc = ConsumeToken(); in ParseInitializerWithPotentialDesignator() local
180 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
187 return Actions.ActOnDesignatedInitializer(D, ColonLoc, true, in ParseInitializerWithPotentialDesignator()
DParseOpenMP.cpp3671 SourceLocation ColonLoc; in ParseOpenMPIteratorsExpr() local
3673 ColonLoc = ConsumeToken(); in ParseOpenMPIteratorsExpr()
3709 D.ColonLoc = ColonLoc; in ParseOpenMPIteratorsExpr()
3772 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3814 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3843 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3879 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3917 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3941 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
3996 Data.ColonLoc = Tok.getLocation(); in ParseOpenMPVarList()
[all …]
DParser.cpp2345 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleDecl() local
2351 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleDecl()
2352 << SourceRange(ColonLoc, Partition.back().second); in ParseModuleDecl()
2406 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleImport() local
2411 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleImport()
2412 << SourceRange(ColonLoc, Path.back().second); in ParseModuleImport()
DParseExpr.cpp400 SourceLocation ColonLoc; in ParseRHSOfBinaryExpression() local
496 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression()
522 ColonLoc = Tok.getLocation(); in ParseRHSOfBinaryExpression()
602 } else if (ColonLoc.isValid()) { in ParseRHSOfBinaryExpression()
603 Diag(ColonLoc, diag::err_init_list_bin_op) in ParseRHSOfBinaryExpression()
639 OpToken.getLocation(), ColonLoc, LHS.get(), TernaryMiddle.get(), in ParseRHSOfBinaryExpression()
DParseDecl.cpp2068 if (TryConsumeToken(tok::colon, FRI->ColonLoc)) { in ParseDeclGroup()
2365 FRI->ColonLoc = EqualLoc; in ParseDeclarationAfterDeclaratorAndAttributes()
4567 SourceLocation ColonLoc = ConsumeToken(); in ParseEnumSpecifier() local
4578 BaseRange = SourceRange(ColonLoc, DeclaratorInfo.getSourceRange().getEnd()); in ParseEnumSpecifier()
4582 Diag(ColonLoc, diag::warn_cxx98_compat_enum_fixed_underlying_type) in ParseEnumSpecifier()
4585 Diag(ColonLoc, diag::ext_cxx11_enum_fixed_underlying_type) in ParseEnumSpecifier()
4588 Diag(ColonLoc, diag::ext_ms_c_enum_fixed_underlying_type) in ParseEnumSpecifier()
4591 Diag(ColonLoc, diag::ext_clang_c_enum_fixed_underlying_type) in ParseEnumSpecifier()
DParseObjc.cpp1463 SourceLocation ColonLoc = Tok.getLocation(); in ParseObjCMethodDecl() local
1464 if (PP.getLocForEndOfToken(ArgInfo.NameLoc) == ColonLoc) { in ParseObjCMethodDecl()
1467 Diag(ColonLoc, diag::note_force_empty_selector_name) << ArgInfo.Name; in ParseObjCMethodDecl()
DParseDeclCXX.cpp3590 SourceLocation ColonLoc = ConsumeToken(); in ParseConstructorInitializer() local
3630 Actions.ActOnMemInitializers(ConstructorDecl, ColonLoc, MemInitializers, in ParseConstructorInitializer()
DParseExprCXX.cpp2036 assert((FRI->ColonLoc.isValid() || !DG) && in ParseCXXCondition()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DOpenMPClause.h343 SourceLocation ColonLoc; variable
354 Expr *Allocator, SourceLocation ColonLoc, in OMPAllocateClause() argument
358 Allocator(Allocator), ColonLoc(ColonLoc) {} in OMPAllocateClause()
369 void setColonLoc(SourceLocation CL) { ColonLoc = CL; } in setColonLoc()
385 SourceLocation ColonLoc,
392 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
439 SourceLocation ColonLoc; variable
457 void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; } in setColonLoc()
475 SourceLocation ColonLoc, SourceLocation EndLoc) in OMPIfClause() argument
478 ColonLoc(ColonLoc), NameModifier(NameModifier), in OMPIfClause()
[all …]
DExprOpenMP.h288 SourceLocation ColonLoc, SecondColonLoc; member
338 void setIteratorRange(unsigned I, Expr *Begin, SourceLocation ColonLoc,
DStmtCXX.h141 SourceLocation ColonLoc; variable
203 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
DDeclCXX.h89 SourceLocation ColonLoc; variable
92 SourceLocation ASLoc, SourceLocation ColonLoc) in AccessSpecDecl() argument
93 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl()
109 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
112 void setColonLoc(SourceLocation CLoc) { ColonLoc = CLoc; } in setColonLoc()
120 SourceLocation ColonLoc) { in Create() argument
121 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create()
DStmt.h1524 SourceLocation ColonLoc;
1533 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() argument
1534 : Stmt(SC), ColonLoc(ColonLoc) { in SwitchCase()
1547 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
1548 void setColonLoc(SourceLocation L) { ColonLoc = L; } in setColonLoc()
DDeclObjC.h591 SourceLocation ColonLoc; variable
601 VarianceLoc(varianceLoc), ColonLoc(colonLoc) {} in ObjCTypeParamDecl()
639 bool hasExplicitBound() const { return ColonLoc.isValid(); } in hasExplicitBound()
643 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
DExpr.h4097 SourceLocation QuestionLoc, ColonLoc; variable
4104 : Expr(SC, T, VK, OK), QuestionLoc(qloc), ColonLoc(cloc) {} in AbstractConditionalOperator()
4124 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaStmt.cpp495 SourceLocation ColonLoc) { in ActOnCaseStmt() argument
512 CaseLoc, DotDotDotLoc, ColonLoc); in ActOnCaseStmt()
523 Sema::ActOnDefaultStmt(SourceLocation DefaultLoc, SourceLocation ColonLoc, in ActOnDefaultStmt() argument
530 DefaultStmt *DS = new (Context) DefaultStmt(DefaultLoc, ColonLoc, SubStmt); in ActOnDefaultStmt()
537 SourceLocation ColonLoc, Stmt *SubStmt) { in ActOnLabelStmt() argument
2438 Stmt *First, SourceLocation ColonLoc, in ActOnCXXForRangeStmt() argument
2501 ForLoc, CoawaitLoc, InitStmt, ColonLoc, RangeDecl.get(), in ActOnCXXForRangeStmt()
2524 SourceLocation ColonLoc, SourceLocation CoawaitLoc, in BuildNonArrayForRange() argument
2528 &SemaRef.PP.getIdentifierTable().get("begin"), ColonLoc); in BuildNonArrayForRange()
2530 ColonLoc); in BuildNonArrayForRange()
[all …]
DTreeTransform.h1275 SourceLocation ColonLoc) { in RebuildCaseStmt() argument
1277 ColonLoc); in RebuildCaseStmt()
1294 SourceLocation ColonLoc, in RebuildDefaultStmt() argument
1296 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt, in RebuildDefaultStmt()
1305 SourceLocation ColonLoc, Stmt *SubStmt) { in RebuildLabelStmt() argument
1306 return SemaRef.ActOnLabelStmt(IdentLoc, L, ColonLoc, SubStmt); in RebuildLabelStmt()
1579 SourceLocation ColonLoc, in RebuildOMPIfClause() argument
1582 LParenLoc, NameModifierLoc, ColonLoc, in RebuildOMPIfClause()
1751 SourceLocation ColonLoc, in RebuildOMPLastprivateClause() argument
1756 VarList, LPKind, LPKindLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in RebuildOMPLastprivateClause()
[all …]
DSemaOpenMP.cpp14041 SourceLocation ColonLoc, in ActOnOpenMPIfClause() argument
14068 LParenLoc, NameModifierLoc, ColonLoc, EndLoc); in ActOnOpenMPIfClause()
15405 const OMPVarListLocTy &Locs, SourceLocation ColonLoc, in ActOnOpenMPVarListClause() argument
15429 ExtraModifierLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in ActOnOpenMPVarListClause()
15439 StartLoc, LParenLoc, ExtraModifierLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
15443 Res = ActOnOpenMPTaskReductionClause(VarList, StartLoc, LParenLoc, ColonLoc, in ActOnOpenMPVarListClause()
15448 Res = ActOnOpenMPInReductionClause(VarList, StartLoc, LParenLoc, ColonLoc, in ActOnOpenMPVarListClause()
15458 ColonLoc, EndLoc); in ActOnOpenMPVarListClause()
15462 LParenLoc, ColonLoc, EndLoc); in ActOnOpenMPVarListClause()
15478 ExtraModifierLoc, ColonLoc, VarList, StartLoc, LParenLoc, EndLoc); in ActOnOpenMPVarListClause()
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DOpenMPClause.cpp498 SourceLocation ColonLoc, Stmt *PreInit, Expr *PostUpdate) { in Create() argument
501 StartLoc, LParenLoc, EndLoc, LPKind, LPKindLoc, ColonLoc, VL.size()); in Create()
568 SourceLocation ColonLoc, SourceLocation EndLoc, ArrayRef<Expr *> VL, in Create() argument
576 StartLoc, LParenLoc, Modifier, ModifierLoc, ColonLoc, EndLoc, VL.size()); in Create()
612 SourceLocation LParenLoc, SourceLocation ColonLoc, in Create() argument
616 OMPAlignedClause(StartLoc, LParenLoc, ColonLoc, EndLoc, VL.size()); in Create()
766 SourceLocation ModifierLoc, SourceLocation EndLoc, SourceLocation ColonLoc, in Create() argument
776 OMPReductionClause(StartLoc, LParenLoc, ModifierLoc, EndLoc, ColonLoc, in Create()
839 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL, in Create() argument
846 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo); in Create()
[all …]
DStmtCXX.cpp53 : Stmt(CXXForRangeStmtClass), ForLoc(FL), CoawaitLoc(CAL), ColonLoc(CL), in CXXForRangeStmt()
DExpr.cpp4880 SourceLocation ColonLoc, Expr *End, in setIteratorRange() argument
4895 ColonLoc; in setIteratorRange()
4964 setIteratorRange(I, D.Range.Begin, D.ColonLoc, D.Range.End, in OMPIteratorExpr()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Sema/
DSema.h4681 SourceLocation ColonLoc);
4685 SourceLocation ColonLoc,
4688 SourceLocation ColonLoc, Stmt *SubStmt);
4746 SourceLocation ColonLoc, Expr *Collection,
4752 SourceLocation ColonLoc,
5334 SourceLocation ColonLoc; member
5513 SourceLocation ColonLoc,
6995 SourceLocation ColonLoc,
7129 SourceLocation ColonLoc,
10933 SourceLocation ColonLoc,
[all …]
/freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/
DASTReaderStmt.cpp993 SourceLocation ColonLoc = readSourceLocation(); in VisitOMPIteratorExpr() local
997 E->setIteratorRange(I, Begin, ColonLoc, End, SecColonLoc, Step); in VisitOMPIteratorExpr()
1137 E->ColonLoc = readSourceLocation(); in VisitConditionalOperator()
1149 E->ColonLoc = readSourceLocation(); in VisitBinaryConditionalOperator()
1666 S->ColonLoc = readSourceLocation(); in VisitCXXForRangeStmt()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Parse/
DParser.h2293 SourceLocation ColonLoc; member
2296 bool ParsedForRangeDecl() { return !ColonLoc.isInvalid(); } in ParsedForRangeDecl()
3361 SourceLocation ColonLoc; member

12