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.cpp758 SourceLocation ColonLoc = ConsumeToken(); in ParseLabeledStatement() local
788 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
797 SubStmt = Actions.ActOnNullStmt(ColonLoc); in ParseLabeledStatement()
806 return Actions.ActOnLabelStmt(IdentTok.getLocation(), LD, ColonLoc, in ParseLabeledStatement()
848 SourceLocation ColonLoc; in ParseCaseStatement() local
852 ColonLoc = SourceLocation(); in ParseCaseStatement()
893 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement()
894 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement()
895 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement()
897 Diag(ColonLoc, diag::err_expected_after) in ParseCaseStatement()
[all …]
H A DParseInit.cpp180 SourceLocation ColonLoc = ConsumeToken(); in ParseInitializerWithPotentialDesignator() local
183 << FixItHint::CreateReplacement(SourceRange(NameLoc, ColonLoc), in ParseInitializerWithPotentialDesignator()
191 return Actions.ActOnDesignatedInitializer(D, ColonLoc, true, in ParseInitializerWithPotentialDesignator()
H A DParser.cpp2520 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleDecl() local
2522 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleDecl()
2523 << SourceRange(ColonLoc, Partition.back().second); in ParseModuleDecl()
2585 SourceLocation ColonLoc = ConsumeToken(); in ParseModuleImport() local
2587 Diag(ColonLoc, diag::err_unsupported_module_partition) in ParseModuleImport()
2588 << SourceRange(ColonLoc, Path.back().second); in ParseModuleImport()
2590 else if (ParseModuleName(ColonLoc, Path, /*IsImport*/ true)) in ParseModuleImport()
H A DParseOpenMP.cpp4271 SourceLocation ColonLoc; in ParseOpenMPIteratorsExpr() local
4273 ColonLoc = ConsumeToken(); in ParseOpenMPIteratorsExpr()
4309 D.ColonLoc = ColonLoc; in ParseOpenMPIteratorsExpr()
4419 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4464 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4542 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4603 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4640 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4664 Data.ColonLoc = ConsumeToken(); in ParseOpenMPVarList()
4690 Data.ColonLoc = Tok.getLocation(); in ParseOpenMPVarList()
[all …]
H A DParseExpr.cpp431 SourceLocation ColonLoc; in ParseRHSOfBinaryExpression() local
527 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression()
553 ColonLoc = Tok.getLocation(); in ParseRHSOfBinaryExpression()
633 } else if (ColonLoc.isValid()) { in ParseRHSOfBinaryExpression()
634 Diag(ColonLoc, diag::err_init_list_bin_op) in ParseRHSOfBinaryExpression()
670 OpToken.getLocation(), ColonLoc, LHS.get(), TernaryMiddle.get(), in ParseRHSOfBinaryExpression()
H A DParseDecl.cpp2469 if (TryConsumeToken(tok::colon, FRI->ColonLoc)) { in ParseDeclGroup()
2809 FRI->ColonLoc = EqualLoc; in ParseDeclarationAfterDeclaratorAndAttributes()
5384 SourceLocation ColonLoc = ConsumeToken(); in ParseEnumSpecifier() local
5399 BaseRange = SourceRange(ColonLoc, DeclaratorInfo.getSourceRange().getEnd()); in ParseEnumSpecifier()
5403 Diag(ColonLoc, diag::warn_cxx98_compat_enum_fixed_underlying_type) in ParseEnumSpecifier()
5406 Diag(ColonLoc, diag::ext_cxx11_enum_fixed_underlying_type) in ParseEnumSpecifier()
5409 Diag(ColonLoc, diag::ext_ms_c_enum_fixed_underlying_type) in ParseEnumSpecifier()
5412 Diag(ColonLoc, diag::ext_clang_c_enum_fixed_underlying_type) in ParseEnumSpecifier()
H A DParseObjc.cpp1518 SourceLocation ColonLoc = Tok.getLocation(); in ParseObjCMethodDecl() local
1519 if (PP.getLocForEndOfToken(ArgInfo.NameLoc) == ColonLoc) { in ParseObjCMethodDecl()
1522 Diag(ColonLoc, diag::note_force_empty_selector_name) << ArgInfo.Name; in ParseObjCMethodDecl()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DOpenMPClause.h441 SourceLocation ColonLoc; variable
452 Expr *Allocator, SourceLocation ColonLoc, in OMPAllocateClause() argument
456 Allocator(Allocator), ColonLoc(ColonLoc) {} in OMPAllocateClause()
467 void setColonLoc(SourceLocation CL) { ColonLoc = CL; } in setColonLoc()
483 SourceLocation ColonLoc,
490 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
537 SourceLocation ColonLoc; variable
555 void setColonLoc(SourceLocation Loc) { ColonLoc = Loc; } in setColonLoc()
573 SourceLocation ColonLoc, SourceLocation EndLoc) in OMPIfClause() argument
576 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.h1762 SourceLocation ColonLoc;
1771 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc)
1772 : Stmt(SC), ColonLoc(ColonLoc) {
1785 SourceLocation getColonLoc() const { return ColonLoc; }
1786 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.h4166 SourceLocation QuestionLoc, ColonLoc; variable
4173 : Expr(SC, T, VK, OK), QuestionLoc(qloc), ColonLoc(cloc) {} in AbstractConditionalOperator()
4193 SourceLocation getColonLoc() const { return ColonLoc; } in getColonLoc()
6957 ExprValueKind VK, ExprObjectKind OK, SourceLocation ColonLoc, in ArraySectionExpr() argument
6960 ColonLocFirst(ColonLoc), RBracketLoc(RBracketLoc) { in ArraySectionExpr()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp518 SourceLocation ColonLoc) { in ActOnCaseStmt() argument
542 CaseLoc, DotDotDotLoc, ColonLoc); in ActOnCaseStmt()
552 Sema::ActOnDefaultStmt(SourceLocation DefaultLoc, SourceLocation ColonLoc, in ActOnDefaultStmt() argument
566 DefaultStmt *DS = new (Context) DefaultStmt(DefaultLoc, ColonLoc, SubStmt); in ActOnDefaultStmt()
573 SourceLocation ColonLoc, Stmt *SubStmt) { in ActOnLabelStmt() argument
2336 Stmt *First, SourceLocation ColonLoc, Expr *Range, SourceLocation RParenLoc, in ActOnCXXForRangeStmt() argument
2400 ForLoc, CoawaitLoc, InitStmt, ColonLoc, RangeDecl.get(), in ActOnCXXForRangeStmt()
2424 SourceLocation ColonLoc, SourceLocation CoawaitLoc, in BuildNonArrayForRange() argument
2428 &SemaRef.PP.getIdentifierTable().get("begin"), ColonLoc); in BuildNonArrayForRange()
2430 ColonLoc); in BuildNonArrayForRange()
[all …]
H A DSemaOpenACC.cpp1415 SourceLocation ColonLoc, in ActOnArraySectionExpr() argument
1516 Diag(ColonLoc, diag::err_acc_subarray_no_length) << IsArray; in ActOnArraySectionExpr()
1520 ColonLoc, SourceLocation(), ArrayRef<Expr *>{std::nullopt}, in ActOnArraySectionExpr()
1624 OK_Ordinary, ColonLoc, RBLoc); in ActOnArraySectionExpr()
H A DTreeTransform.h1365 SourceLocation ColonLoc) { in RebuildCaseStmt() argument
1367 ColonLoc); in RebuildCaseStmt()
1384 SourceLocation ColonLoc, in RebuildDefaultStmt() argument
1386 return getSema().ActOnDefaultStmt(DefaultLoc, ColonLoc, SubStmt, in RebuildDefaultStmt()
1395 SourceLocation ColonLoc, Stmt *SubStmt) { in RebuildLabelStmt() argument
1396 return SemaRef.ActOnLabelStmt(IdentLoc, L, ColonLoc, SubStmt); in RebuildLabelStmt()
1689 SourceLocation ColonLoc, in RebuildOMPIfClause() argument
1692 NameModifier, Condition, StartLoc, LParenLoc, NameModifierLoc, ColonLoc, in RebuildOMPIfClause()
1866 SourceLocation ColonLoc, in RebuildOMPLastprivateClause() argument
1871 VarList, LPKind, LPKindLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in RebuildOMPLastprivateClause()
[all …]
H A DSemaOpenMP.cpp15279 SourceLocation ColonLoc, SourceLocation EndLoc) { in ActOnOpenMPIfClause() argument
15306 LParenLoc, NameModifierLoc, ColonLoc, EndLoc); in ActOnOpenMPIfClause()
16893 SourceLocation ColonLoc = Data.ColonLoc; in ActOnOpenMPVarListClause() local
16906 ExtraModifierLoc, ColonLoc, StartLoc, LParenLoc, EndLoc); in ActOnOpenMPVarListClause()
16916 StartLoc, LParenLoc, ExtraModifierLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
16921 VarList, StartLoc, LParenLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
16926 VarList, StartLoc, LParenLoc, ColonLoc, EndLoc, in ActOnOpenMPVarListClause()
16935 ColonLoc, Data.StepModifierLoc, EndLoc); in ActOnOpenMPVarListClause()
16939 LParenLoc, ColonLoc, EndLoc); in ActOnOpenMPVarListClause()
16955 ColonLoc, Data.OmpAllMemoryLoc}, in ActOnOpenMPVarListClause()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSemaOpenMP.h844 SourceLocation ColonLoc,
1095 SourceLocation ColonLoc; member
1132 SourceLocation StartLoc, SourceLocation ColonLoc,
1147 SourceLocation LPKindLoc, SourceLocation ColonLoc,
1158 SourceLocation ModifierLoc, SourceLocation ColonLoc,
1165 SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
1172 SourceLocation LParenLoc, SourceLocation ColonLoc, SourceLocation EndLoc,
1180 SourceLocation LinLoc, SourceLocation ColonLoc,
1186 SourceLocation ColonLoc,
1226 SourceLocation MapLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VarList,
[all …]
H A DSema.h5294 SourceLocation ColonLoc,
5433 void ActOnMemInitializers(Decl *ConstructorDecl, SourceLocation ColonLoc,
7056 SourceLocation ColonLoc, Expr *CondExpr,
10691 SourceLocation ColonLoc);
10697 SourceLocation ColonLoc, Stmt *SubStmt,
10700 SourceLocation ColonLoc, Stmt *SubStmt);
10785 Stmt *InitStmt, Stmt *LoopVar, SourceLocation ColonLoc, Expr *Collection,
10792 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()
795 SourceLocation ModifierLoc, SourceLocation EndLoc, SourceLocation ColonLoc, in Create() argument
805 OMPReductionClause(StartLoc, LParenLoc, ModifierLoc, EndLoc, ColonLoc, in Create()
868 SourceLocation EndLoc, SourceLocation ColonLoc, ArrayRef<Expr *> VL, in Create() argument
875 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.cpp5204 SourceLocation ColonLoc, Expr *End, in setIteratorRange() argument
5219 ColonLoc; in setIteratorRange()
5288 setIteratorRange(I, D.Range.Begin, D.ColonLoc, D.Range.End, in OMPIteratorExpr()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTReaderStmt.cpp1003 SourceLocation ColonLoc = readSourceLocation(); in VisitOMPIteratorExpr() local
1007 E->setIteratorRange(I, Begin, ColonLoc, End, SecColonLoc, Step); in VisitOMPIteratorExpr()
1151 E->ColonLoc = readSourceLocation(); in VisitConditionalOperator()
1163 E->ColonLoc = readSourceLocation(); in VisitBinaryConditionalOperator()
1693 S->ColonLoc = readSourceLocation(); in VisitCXXForRangeStmt()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h2457 SourceLocation ColonLoc; member
2460 bool ParsedForRangeDecl() { return !ColonLoc.isInvalid(); } in ParsedForRangeDecl()

12