Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseStmt.cpp697 SourceLocation ColonLoc = ConsumeToken(); in ParseLabeledStatement() local
727 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
736 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
745 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc, in ParseLabeledStatement()
782 SourceLocation ColonLoc; in ParseCaseStatement() local
786 ColonLoc = SourceLocation(); in ParseCaseStatement()
835 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement()
836 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement()
837 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement()
839 Diag(ColonLoc, diag::err_expected_after) in ParseCaseStatement()
[all …]
H A DParseInit.cpp132 SourceLocation ColonLoc = ConsumeToken(); in ParseInitializerWithPotentialDesignator() local
135 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
143 return Actions.ActOnDesignatedInitializer(D, ColonLoc, true, in ParseInitializerWithPotentialDesignator()
H A DParser.cpp2402 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleDecl() local
2404 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleDecl()
2405 << SourceRange(ColonLoc, Partition.back().getLoc()); in ParseModuleDecl()
2453 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleImport() local
2455 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleImport()
2456 << SourceRange(ColonLoc, Path.back().getLoc()); in ParseModuleImport()
2458 else if (ParseModuleName(ColonLoc, Path, /*IsImport*/ true)) in ParseModuleImport()
H A DParseOpenMP.cpp4209 SourceLocation ColonLoc; in ParseOpenMPIteratorsExpr() local
4211 ColonLoc = ConsumeToken(); in ParseOpenMPIteratorsExpr()
4245 D.ColonLoc = ColonLoc; in ParseOpenMPIteratorsExpr()
4471 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4516 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4594 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4655 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4692 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4716 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4748 Data.ColonLoc = Tok.getLocation(); in ParseOpenMPVarList()
[all …]
H A DParseExpr.cpp320 SourceLocation ColonLoc; in ParseRHSOfBinaryExpression() local
411 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression()
437 ColonLoc = Tok.getLocation(); in ParseRHSOfBinaryExpression()
507 } else if (ColonLoc.isValid()) { in ParseRHSOfBinaryExpression()
508 Diag(ColonLoc, diag::err_init_list_bin_op) in ParseRHSOfBinaryExpression()
543 OpToken.getLocation(), ColonLoc, LHS.get(), TernaryMiddle.get(), in ParseRHSOfBinaryExpression()
H A DParseDecl.cpp2305 if (TryConsumeToken(tok::colon, FRI->ColonLoc)) { in ParseDeclGroup()
2622 FRI->ColonLoc = EqualLoc; in ParseDeclarationAfterDeclaratorAndAttributes()
5120 SourceLocation ColonLoc = ConsumeToken(); in ParseEnumSpecifier() local
5135 BaseRange = SourceRange(ColonLoc, DeclaratorInfo.getSourceRange().getEnd()); in ParseEnumSpecifier()
5139 DiagCompat(ColonLoc, diag_compat::enum_fixed_underlying_type) in ParseEnumSpecifier()
5142 Diag(ColonLoc, diag::ext_ms_c_enum_fixed_underlying_type) in ParseEnumSpecifier()
5145 Diag(ColonLoc, getLangOpts().C23 in ParseEnumSpecifier()
H A DParseObjc.cpp1288 SourceLocation ColonLoc = Tok.getLocation(); in ParseObjCMethodDecl() local
1289 if (PP.getLocForEndOfToken(ArgInfo.NameLoc) == ColonLoc) { in ParseObjCMethodDecl()
1292 Diag(ColonLoc, diag::note_force_empty_selector_name) << ArgInfo.Name; in ParseObjCMethodDecl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DOpenMPClause.h499 SourceLocation ColonLoc; variable
549 Expr *Allocator, Expr *Alignment, SourceLocation ColonLoc, in OMPAllocateClause() argument
557 Allocator(Allocator), Alignment(Alignment), ColonLoc(ColonLoc) { in OMPAllocateClause()
576 void setColonLoc(SourceLocation CL) { ColonLoc = CL; } in setColonLoc()
598 Expr *Allocator, Expr *Alignment, SourceLocation ColonLoc,
635 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
686 SourceLocation ColonLoc; variable
704 void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; } in setColonLoc()
722 SourceLocation ColonLoc, SourceLocation EndLoc) in OMPIfClause() argument
725 ColonLoc(ColonLoc), NameModifier(NameModifier), in OMPIfClause()
[all …]
H A DExprOpenMP.h164 SourceLocation ColonLoc, SecondColonLoc; member
214 void setIteratorRange(unsigned I, Expr *Begin, SourceLocation ColonLoc,
H A DStmtCXX.h142 SourceLocation ColonLoc; variable
204 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
H A DDeclCXX.h88 SourceLocation ColonLoc; variable
91 SourceLocation ASLoc, SourceLocation ColonLoc) in AccessSpecDecl() argument
92 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl()
108 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
111 void setColonLoc(SourceLocation CLoc) { ColonLoc = CLoc; } in setColonLoc()
119 SourceLocation ColonLoc) { in Create() argument
120 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create()
H A DStmt.h1887 SourceLocation ColonLoc;
1896 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
1897 : Stmt(SC), ColonLoc(ColonLoc) {
1910 SourceLocation getColonLoc() const { return ColonLoc; }
1911 void setColonLoc(SourceLocation L) { ColonLoc = L; }
H A DDeclObjC.h591 SourceLocation ColonLoc; variable
601 VarianceLoc(varianceLoc), ColonLoc(colonLoc) {} in ObjCTypeParamDecl()
640 bool hasExplicitBound() const { return ColonLoc.isValid(); } in hasExplicitBound()
644 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
H A DExpr.h4282 SourceLocation QuestionLoc, ColonLoc; variable
4289 : Expr(SC, T, VK, OK), QuestionLoc(qloc), ColonLoc(cloc) {} in AbstractConditionalOperator()
4309 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
7125 ExprValueKind VK, ExprObjectKind OK, SourceLocation ColonLoc, in ArraySectionExpr() argument
7128 ColonLocFirst(ColonLoc), RBracketLoc(RBracketLoc) { in ArraySectionExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp544 SourceLocation ColonLoc) { in ActOnCaseStmt() argument
568 CaseLoc, DotDotDotLoc, ColonLoc); in ActOnCaseStmt()
578 Sema::ActOnDefaultStmt(SourceLocation DefaultLoc, SourceLocation ColonLoc, in ActOnDefaultStmt() argument
592 DefaultStmt *DS = new (Context) DefaultStmt(DefaultLoc, ColonLoc, SubStmt); in ActOnDefaultStmt()
599 SourceLocation ColonLoc, Stmt *SubStmt) { in ActOnLabelStmt() argument
2443 Stmt *First, SourceLocation ColonLoc, Expr *Range, SourceLocation RParenLoc, in ActOnCXXForRangeStmt() argument
2507 ForLoc, CoawaitLoc, InitStmt, ColonLoc, RangeDecl.get(), in ActOnCXXForRangeStmt()
2531 SourceLocation ColonLoc, SourceLocation CoawaitLoc, in BuildNonArrayForRange() argument
2535 &SemaRef.PP.getIdentifierTable().get("begin"), ColonLoc); in BuildNonArrayForRange()
2537 ColonLoc); in BuildNonArrayForRange()
[all …]
H A DTreeTransform.h1359 SourceLocation ColonLoc) { in RebuildCaseStmt() argument
1361 ColonLoc); in RebuildCaseStmt()
1378 SourceLocation ColonLoc, in RebuildDefaultStmt() argument
1380 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt, in RebuildDefaultStmt()
1389 SourceLocation ColonLoc, Stmt *SubStmt) { in RebuildLabelStmt() argument
1390 return SemaRef.ActOnLabelStmt(IdentLoc, L, ColonLoc, SubStmt); in RebuildLabelStmt()
1695 SourceLocation ColonLoc, in RebuildOMPIfClause() argument
1698 NameModifier, Condition, StartLoc, LParenLoc, NameModifierLoc, ColonLoc, in RebuildOMPIfClause()
1883 SourceLocation ColonLoc, in RebuildOMPLastprivateClause() argument
1888 VarList, LPKind, LPKindLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in RebuildOMPLastprivateClause()
[all …]
H A DSemaOpenMP.cpp15763 SourceLocation ColonLoc, SourceLocation EndLoc) { in ActOnOpenMPIfClause() argument
15790 LParenLoc, NameModifierLoc, ColonLoc, EndLoc); in ActOnOpenMPIfClause()
17487 SourceLocation ColonLoc = Data.ColonLoc; in ActOnOpenMPVarListClause() local
17500 ExtraModifierLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in ActOnOpenMPVarListClause()
17512 StartLoc, LParenLoc, ExtraModifierLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
17517 VarList, StartLoc, LParenLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
17522 VarList, StartLoc, LParenLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
17531 ColonLoc, Data.StepModifierLoc, EndLoc); in ActOnOpenMPVarListClause()
17535 LParenLoc, ColonLoc, EndLoc); in ActOnOpenMPVarListClause()
17551 ColonLoc, Data.OmpAllMemoryLoc}, in ActOnOpenMPVarListClause()
[all …]
H A DSemaOpenACC.cpp721 SourceLocation ColonLoc, in ActOnArraySectionExpr() argument
822 SourceLocation DiagLoc = ColonLoc.isInvalid() ? LBLoc : ColonLoc; in ActOnArraySectionExpr()
930 OK_Ordinary, ColonLoc, RBLoc); in ActOnArraySectionExpr()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaOpenMP.h873 SourceLocation ColonLoc,
1144 SourceLocation ColonLoc; member
1200 SourceLocation ColonLoc, SourceLocation LParenLoc,
1215 SourceLocation LPKindLoc, SourceLocation ColonLoc,
1227 SourceLocation ModifierLoc, SourceLocation ColonLoc,
1234 SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
1241 SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
1249 SourceLocation LinLoc, SourceLocation ColonLoc,
1255 SourceLocation ColonLoc,
1295 SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
[all …]
H A DSema.h5709 SourceLocation ColonLoc,
5848 void ActOnMemInitializers(Decl *ConstructorDecl, SourceLocation ColonLoc,
7481 SourceLocation ColonLoc, Expr *CondExpr,
10906 SourceLocation ColonLoc);
10912 SourceLocation ColonLoc, Stmt *SubStmt,
10915 SourceLocation ColonLoc, Stmt *SubStmt);
11000 Stmt *InitStmt, Stmt *LoopVar, SourceLocation ColonLoc, Expr *Collection,
11007 SourceLocation ColonLoc, Stmt *RangeDecl, Stmt *Begin, Stmt *End,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DOpenMPClause.cpp518 SourceLocation ColonLoc, Stmt *PreInit, Expr *PostUpdate) { in Create() argument
521 StartLoc, LParenLoc, EndLoc, LPKind, LPKindLoc, ColonLoc, VL.size()); in Create()
588 SourceLocation ColonLoc, SourceLocation StepModifierLoc, in Create() argument
598 ColonLoc, StepModifierLoc, EndLoc, VL.size()); in Create()
634 SourceLocation LParenLoc, SourceLocation ColonLoc, in Create() argument
638 OMPAlignedClause(StartLoc, LParenLoc, ColonLoc, EndLoc, VL.size()); in Create()
793 SourceLocation ModifierLoc, SourceLocation EndLoc, SourceLocation ColonLoc, in Create() argument
805 StartLoc, LParenLoc, ModifierLoc, EndLoc, ColonLoc, Modifier, in Create()
869 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL, in Create() argument
876 StartLoc, LParenLoc, EndLoc, ColonLoc, VL.size(), QualifierLoc, NameInfo); in Create()
[all …]
H A DStmtCXX.cpp54 : Stmt(CXXForRangeStmtClass), ForLoc(FL), CoawaitLoc(CAL), ColonLoc(CL), in CXXForRangeStmt()
H A DExpr.cpp5297 SourceLocation ColonLoc, Expr *End, in setIteratorRange() argument
5312 ColonLoc; in setIteratorRange()
5381 setIteratorRange(I, D.Range.Begin, D.ColonLoc, D.Range.End, in OMPIteratorExpr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1011 SourceLocation ColonLoc = readSourceLocation(); in VisitOMPIteratorExpr() local
1015 E->setIteratorRange(I, Begin, ColonLoc, End, SecColonLoc, Step); in VisitOMPIteratorExpr()
1165 E->ColonLoc = readSourceLocation(); in VisitConditionalOperator()
1177 E->ColonLoc = readSourceLocation(); in VisitBinaryConditionalOperator()
1712 S->ColonLoc = readSourceLocation(); in VisitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1705 SourceLocation ColonLoc; member
1708 bool ParsedForRangeDecl() { return !ColonLoc.isInvalid(); } in ParsedForRangeDecl()

12