| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | OpenACCClause.cpp | 50 SourceLocation BeginLoc, in Create() argument 56 return new (Mem) OpenACCDefaultClause(K, BeginLoc, LParenLoc, EndLoc); in Create() 60 SourceLocation BeginLoc, in Create() argument 65 return new (Mem) OpenACCIfClause(BeginLoc, LParenLoc, ConditionExpr, EndLoc); in Create() 68 OpenACCIfClause::OpenACCIfClause(SourceLocation BeginLoc, in OpenACCIfClause() argument 71 : OpenACCClauseWithCondition(OpenACCClauseKind::If, BeginLoc, LParenLoc, in OpenACCIfClause() 80 SourceLocation BeginLoc, in Create() argument 86 OpenACCSelfClause(BeginLoc, LParenLoc, ConditionExpr, EndLoc); in Create() 89 OpenACCSelfClause::OpenACCSelfClause(SourceLocation BeginLoc, in OpenACCSelfClause() argument 92 : OpenACCClauseWithCondition(OpenACCClauseKind::Self, BeginLoc, LParenLoc, in OpenACCSelfClause() [all …]
|
| H A D | StmtOpenACC.cpp | 29 const ASTContext &C, OpenACCDirectiveKind K, SourceLocation BeginLoc, in Create() argument 36 auto *Inst = new (Mem) OpenACCComputeConstruct(K, BeginLoc, DirLoc, EndLoc, in Create() 115 OpenACCLoopConstruct::Create(const ASTContext &C, SourceLocation BeginLoc, in Create() argument 123 new (Mem) OpenACCLoopConstruct(BeginLoc, DirLoc, EndLoc, Clauses, Loop); in Create()
|
| H A D | Stmt.cpp | 730 SourceLocation BeginLoc = getAsmString()->getLocationOfByte( in AnalyzeAsmString() local 737 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString() 766 SourceLocation BeginLoc = getAsmString()->getLocationOfByte( in AnalyzeAsmString() local 773 Pieces.emplace_back(N, std::move(Str), BeginLoc, EndLoc); in AnalyzeAsmString()
|
| H A D | Expr.cpp | 5114 RecoveryExpr::RecoveryExpr(ASTContext &Ctx, QualType T, SourceLocation BeginLoc, in RecoveryExpr() argument 5119 BeginLoc(BeginLoc), EndLoc(EndLoc), NumExprs(SubExprs.size()) { in RecoveryExpr() 5128 SourceLocation BeginLoc, in Create() argument 5133 return new (Mem) RecoveryExpr(Ctx, T, BeginLoc, EndLoc, SubExprs); in Create()
|
| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | OpenACCClause.h | 29 OpenACCClause(OpenACCClauseKind K, SourceLocation BeginLoc, in OpenACCClause() argument 31 : Kind(K), Location(BeginLoc, EndLoc) { in OpenACCClause() 32 assert(!BeginLoc.isInvalid() && !EndLoc.isInvalid() && in OpenACCClause() 60 OpenACCAutoClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCAutoClause() argument 61 : OpenACCClause(OpenACCClauseKind::Auto, BeginLoc, EndLoc) {} in OpenACCAutoClause() 69 Create(const ASTContext &Ctx, SourceLocation BeginLoc, SourceLocation EndLoc); 82 OpenACCIndependentClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCIndependentClause() argument 83 : OpenACCClause(OpenACCClauseKind::Independent, BeginLoc, EndLoc) {} in OpenACCIndependentClause() 91 Create(const ASTContext &Ctx, SourceLocation BeginLoc, SourceLocation EndLoc); 103 OpenACCSeqClause(SourceLocation BeginLoc, SourceLocation EndLoc) in OpenACCSeqClause() argument [all …]
|
| H A D | Availability.h | 40 SourceLocation BeginLoc, EndLoc; variable 44 SourceLocation BeginLoc, SourceLocation EndLoc) in AvailabilitySpec() argument 45 : Version(Version), Platform(Platform), BeginLoc(BeginLoc), in AvailabilitySpec() 50 : BeginLoc(StarLoc), EndLoc(StarLoc) {} in AvailabilitySpec() 54 SourceLocation getBeginLoc() const { return BeginLoc; } in getBeginLoc()
|
| H A D | StmtOpenACC.h | 184 Create(const ASTContext &C, OpenACCDirectiveKind K, SourceLocation BeginLoc, 234 Create(const ASTContext &C, SourceLocation BeginLoc, SourceLocation DirLoc,
|
| H A D | DeclarationName.h | 746 static DeclarationNameLoc makeCXXOperatorNameLoc(SourceLocation BeginLoc, in makeCXXOperatorNameLoc() argument 748 return makeCXXOperatorNameLoc(SourceRange(BeginLoc, EndLoc)); in makeCXXOperatorNameLoc()
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 212 ModuleScopes.back().BeginLoc = StartOfTU; in HandleStartOfHeaderUnit() 335 SourceLocation BeginLoc = in ActOnModuleDecl() local 338 : ModuleScopes.back().BeginLoc; in ActOnModuleDecl() 339 if (BeginLoc.isValid()) { in ActOnModuleDecl() 340 Diag(BeginLoc, diag::note_global_module_introducer_missing) in ActOnModuleDecl() 341 << FixItHint::CreateInsertion(BeginLoc, "module;\n"); in ActOnModuleDecl() 461 ModuleScopes.back().BeginLoc = StartLoc; in ActOnModuleDecl() 530 Diag(ModuleScopes.back().BeginLoc, diag::note_previous_definition); in ActOnPrivateModuleFragmentDecl() 535 Diag(ModuleScopes.back().BeginLoc, in ActOnPrivateModuleFragmentDecl() 537 << FixItHint::CreateInsertion(ModuleScopes.back().BeginLoc, "export "); in ActOnPrivateModuleFragmentDecl() [all …]
|
| H A D | SemaCast.cpp | 1079 SourceLocation BeginLoc = OpRange.getBegin(); in DiagnoseReinterpretUpDownCast() local 1080 Self.Diag(BeginLoc, diag::warn_reinterpret_different_from_static) in DiagnoseReinterpretUpDownCast() 1083 Self.Diag(BeginLoc, diag::note_reinterpret_updowncast_use_static) in DiagnoseReinterpretUpDownCast() 1085 << FixItHint::CreateReplacement(BeginLoc, "static_cast"); in DiagnoseReinterpretUpDownCast()
|
| /src/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PreprocessingRecord.cpp | 254 SourceLocation BeginLoc = Entity->getSourceRange().getBegin(); in addPreprocessedEntity() local 259 BeginLoc, in addPreprocessedEntity() 268 !SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 296 if (!SourceMgr.isBeforeInTranslationUnit(BeginLoc, in addPreprocessedEntity() 306 llvm::upper_bound(PreprocessedEntities, BeginLoc, in addPreprocessedEntity()
|
| H A D | TokenLexer.cpp | 992 SourceLocation BeginLoc = begin_tokens->getLocation(); in updateConsecutiveMacroArgTokens() local 996 auto NearLast = [&, Last = BeginLoc](SourceLocation Loc) mutable { in updateConsecutiveMacroArgTokens() 1009 if (BeginLoc.isFileID()) { in updateConsecutiveMacroArgTokens() 1018 FileID BeginFID = SM.getFileID(BeginLoc); in updateConsecutiveMacroArgTokens() 1030 return T.getLocation() >= BeginLoc && T.getLocation() <= Limit in updateConsecutiveMacroArgTokens() 1043 SM.createMacroArgExpansionLoc(BeginLoc, ExpandLoc, FullLength); in updateConsecutiveMacroArgTokens() 1057 T.getLocation().getRawEncoding() - BeginLoc.getRawEncoding(); in updateConsecutiveMacroArgTokens()
|
| H A D | Pragma.cpp | 1732 SourceLocation BeginLoc = Tok.getLocation(); in HandlePragma() local 1774 PP.Diag(BeginLoc, diag::note_pp_module_begin_here) in HandlePragma() 1780 PP.EnterSubmodule(M, BeginLoc, /*ForPragma*/true); in HandlePragma() 1781 PP.EnterAnnotationToken(SourceRange(BeginLoc, ModuleName.back().second), in HandlePragma() 1891 SourceLocation BeginLoc = PP.getPragmaARCCFCodeAuditedInfo().second; in HandlePragma() local 1898 if (BeginLoc.isValid()) { in HandlePragma() 1900 PP.Diag(BeginLoc, diag::note_pragma_entered_here); in HandlePragma() 1905 if (!BeginLoc.isValid()) { in HandlePragma() 1946 SourceLocation BeginLoc = PP.getPragmaAssumeNonNullLoc(); in HandlePragma() local 1954 if (BeginLoc.isValid()) { in HandlePragma() [all …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 190 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 192 assert(BeginLoc.isValid()); in FileRange() 193 assert(BeginLoc.isFileID()); in FileRange() 195 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange() 198 FileRange::FileRange(const SourceManager &SM, SourceLocation BeginLoc, in FileRange() argument 200 assert(BeginLoc.isValid()); in FileRange() 201 assert(BeginLoc.isFileID()); in FileRange() 204 assert(SM.getFileID(BeginLoc) == SM.getFileID(EndLoc)); in FileRange() 205 assert(SM.getFileOffset(BeginLoc) <= SM.getFileOffset(EndLoc)); in FileRange() 207 std::tie(File, Begin) = SM.getDecomposedLoc(BeginLoc); in FileRange()
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
| H A D | RecursiveSymbolVisitor.h | 141 bool visit(const NamedDecl *ND, SourceLocation BeginLoc, in visit() argument 144 ND, SourceRange(BeginLoc, EndLoc)); in visit()
|
| /src/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 89 const SourceLocation BeginLoc = Loc; in checkAndAddLocation() local 91 BeginLoc, 0, Context.getSourceManager(), Context.getLangOpts()); in checkAndAddLocation() 93 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in checkAndAddLocation() 101 BeginLoc.getLocWithOffset(Offset)); in checkAndAddLocation()
|
| /src/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | SARIFDiagnostic.cpp | 109 SourceLocation BeginLoc = SM.translateLineCol( in addLocationToResult() local 115 CharSourceRange{SourceRange{BeginLoc, EndLoc}, /* ITR = */ false}); in addLocationToResult()
|
| /src/contrib/llvm-project/clang/include/clang/Tooling/Syntax/ |
| H A D | Tokens.h | 54 FileRange(const SourceManager &SM, SourceLocation BeginLoc, unsigned Length); 57 FileRange(const SourceManager &SM, SourceLocation BeginLoc,
|
| /src/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
| H A D | SourceCode.cpp | 135 SourceLocation BeginLoc = in getRangeForSplitTokens() local 140 return CharSourceRange::getCharRange(BeginLoc, EndToken->getEnd()); in getRangeForSplitTokens()
|
| /src/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | SemaOpenACC.h | 91 OpenACCClauseKind ClauseKind, SourceLocation BeginLoc) in OpenACCParsedClause() argument 92 : DirKind(DirKind), ClauseKind(ClauseKind), ClauseRange(BeginLoc, {}) {} in OpenACCParsedClause()
|
| /src/contrib/llvm-project/clang/lib/Parse/ |
| H A D | Parser.cpp | 1862 SourceLocation BeginLoc = NameLoc; in TryAnnotateName() local 1864 BeginLoc = SS.getBeginLoc(); in TryAnnotateName() 1888 Tok.setLocation(BeginLoc); in TryAnnotateName() 2140 SourceLocation BeginLoc = Tok.getLocation(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local 2142 BeginLoc = SS.getBeginLoc(); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() 2167 Tok.setLocation(BeginLoc); in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
|
| /src/contrib/llvm-project/clang/lib/ExtractAPI/Serialization/ |
| H A D | SymbolGraphSerializer.cpp | 143 Object serializeSourceRange(const PresumedLoc &BeginLoc, in serializeSourceRange() argument 146 serializeObject(SourceRange, "start", serializeSourcePosition(BeginLoc)); in serializeSourceRange()
|
| /src/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTReader.cpp | 8067 BeginLoc = SM.getLocForStartOfFile(File).getLocWithOffset(Offset); in FindFileRegionDecls() local 8068 SourceLocation EndLoc = BeginLoc.getLocWithOffset(Length); in FindFileRegionDecls() 8072 llvm::lower_bound(DInfo.Decls, BeginLoc, DIDComp); in FindFileRegionDecls() 11940 SourceLocation BeginLoc = readSourceLocation(); in readOpenACCClause() local 11947 return OpenACCDefaultClause::Create(getContext(), DCK, BeginLoc, LParenLoc, in readOpenACCClause() 11953 return OpenACCIfClause::Create(getContext(), BeginLoc, LParenLoc, CondExpr, in readOpenACCClause() 11959 return OpenACCSelfClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() 11968 return OpenACCNumGangsClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() 11974 return OpenACCNumWorkersClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() 11980 return OpenACCVectorLengthClause::Create(getContext(), BeginLoc, LParenLoc, in readOpenACCClause() [all …]
|
| /src/contrib/llvm-project/clang/lib/Tooling/ASTDiff/ |
| H A D | ASTDiff.cpp | 996 SourceLocation BeginLoc = Range.getBegin(); in getSourceRangeOffsets() local 1001 EndLoc = BeginLoc; in getSourceRangeOffsets() 1003 unsigned Begin = SrcMgr.getFileOffset(SrcMgr.getExpansionLoc(BeginLoc)); in getSourceRangeOffsets()
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | BugReporterVisitors.cpp | 2970 SourceLocation BeginLoc = OriginalExpr->getBeginLoc(); in patternMatch() local 2972 if (BeginLoc.isMacroID() && EndLoc.isMacroID()) { in patternMatch() 2975 if (Lexer::isAtStartOfMacroExpansion(BeginLoc, SM, LO) && in patternMatch() 2977 CharSourceRange R = Lexer::getAsCharRange({BeginLoc, EndLoc}, SM, LO); in patternMatch()
|