| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | SelectorLocationsKind.cpp | 23 SourceLocation EndLoc) { in getStandardSelLoc() argument 27 if (EndLoc.isInvalid()) in getStandardSelLoc() 31 return EndLoc.getLocWithOffset(-Len); in getStandardSelLoc() 77 Args, EndLoc)) in hasStandardSelLocs() 86 Args, EndLoc)) in hasStandardSelLocs() 99 SourceLocation EndLoc) { in hasStandardSelectorLocs() argument 100 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs() 109 getArgLoc(Index, Args), EndLoc); in getStandardSelectorLoc() 116 SourceLocation EndLoc) { in hasStandardSelectorLocs() argument 117 return hasStandardSelLocs(Sel, SelLocs, Args, EndLoc); in hasStandardSelectorLocs() [all …]
|
| H A D | StmtOpenMP.cpp | 764 EndLoc); in Create() 808 EndLoc); in Create() 825 EndLoc); in Create() 949 EndLoc, CollapsedNum); in Create() 1231 EndLoc, CollapsedNum); in Create() 1275 EndLoc, CollapsedNum); in Create() 1319 EndLoc, CollapsedNum); in Create() 1366 EndLoc, CollapsedNum); in Create() 1565 EndLoc, CollapsedNum); in Create() 1730 EndLoc, CollapsedNum); in Create() [all …]
|
| H A D | OpenMPClause.cpp | 384 SourceLocation EndLoc) { in Create() argument 528 SourceLocation EndLoc, in Create() argument 639 SourceLocation EndLoc) { in Create() argument 640 return new (C) OMPAlignClause(A, StartLoc, LParenLoc, EndLoc); in Create() 944 SourceLocation EndLoc, in Create() argument 949 Clause->setLocEnd(EndLoc); in Create() 962 SourceLocation EndLoc) { in Create() argument 965 Clause->setLocEnd(EndLoc); in Create() 981 Clause->setLocEnd(EndLoc); in Create() 1012 SourceLocation EndLoc, in Create() argument [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtOpenMP.h | 275 SourceLocation EndLoc; variable 298 EndLoc(std::move(EndLoc)) {} in OMPExecutableDirective() 2263 EndLoc) {} in OMPParallelMasterDirective() 2326 EndLoc) {} in OMPParallelMaskedDirective() 2398 EndLoc) {} in OMPParallelSectionsDirective() 3215 EndLoc) {} in OMPTargetEnterDataDirective() 3270 EndLoc) {} in OMPTargetExitDataDirective() 3327 EndLoc) {} in OMPTargetParallelDirective() 3554 EndLoc) {} in OMPCancellationPointDirective() 4446 EndLoc) {} in OMPTargetUpdateDirective() [all …]
|
| H A D | Availability.h | 39 SourceLocation BeginLoc, EndLoc; variable 43 SourceLocation BeginLoc, SourceLocation EndLoc) in AvailabilitySpec() argument 45 EndLoc(EndLoc) {} in AvailabilitySpec() 49 : BeginLoc(StarLoc), EndLoc(StarLoc) {} in AvailabilitySpec() 54 SourceLocation getEndLoc() const { return EndLoc; } in getEndLoc()
|
| H A D | OpenMPClause.h | 60 SourceLocation EndLoc; variable 67 : StartLoc(StartLoc), EndLoc(EndLoc), Kind(K) {} in OMPClause() 182 SourceLocation EndLoc; member 185 SourceLocation EndLoc) in OMPVarListLocTy() 186 : StartLoc(StartLoc), LParenLoc(LParenLoc), EndLoc(EndLoc) {} in OMPVarListLocTy() 357 SourceLocation EndLoc) in OMPAlignClause() argument 771 SourceLocation EndLoc) in OMPSafelenClause() argument 837 SourceLocation EndLoc) in OMPSimdlenClause() argument 6390 SourceLocation EndLoc) in OMPHintClause() argument 7871 SourceLocation EndLoc) in OMPUseClause() argument [all …]
|
| H A D | SelectorLocationsKind.h | 48 SourceLocation EndLoc); 60 SourceLocation EndLoc); 66 SourceLocation EndLoc); 78 SourceLocation EndLoc);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | BranchCloneCheck.cpp | 216 SourceLocation EndLoc = (EndCurrent - 1)->back()->getEndLoc(); in check() local 221 if (EndLoc.isInvalid()) in check() 222 EndLoc = (EndCurrent - 1)->back()->getBeginLoc(); in check() 224 if (EndLoc.isMacroID()) in check() 225 EndLoc = Context.getSourceManager().getExpansionLoc(EndLoc); in check() 226 EndLoc = Lexer::getLocForEndOfToken(EndLoc, 0, *Result.SourceManager, in check() 229 if (EndLoc.isValid()) { in check() 230 diag(EndLoc, "last of these clones ends here", DiagnosticIDs::Note); in check()
|
| H A D | SuspiciousStringCompareCheck.cpp | 169 SourceLocation EndLoc = Lexer::getLocForEndOfToken( in check() local 175 << Decl << FixItHint::CreateInsertion(EndLoc, " != 0"); in check() 179 SourceLocation EndLoc = Lexer::getLocForEndOfToken( in check() local 189 << FixItHint::CreateInsertion(EndLoc, " == 0"); in check()
|
| H A D | StringIntegerAssignmentCheck.cpp | 160 SourceLocation EndLoc = Lexer::getLocForEndOfToken( in check() local 164 << FixItHint::CreateInsertion(EndLoc, "'"); in check() 169 << FixItHint::CreateInsertion(EndLoc, "\""); in check() 176 << FixItHint::CreateInsertion(EndLoc, ")"); in check()
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 293 SMLoc &EndLoc) { in ParseRegister() argument 320 EndLoc = T.getEndLoc(); in tryParseRegister() 459 SMLoc StartLoc, EndLoc; in ParseOperand() local 460 if (!ParseRegister(RegNo, StartLoc, EndLoc)) { in ParseOperand() 474 SMLoc EndLoc = getParser().getTok().getLoc(); in ParseOperand() local 483 EndLoc = getParser().getTok().getEndLoc(); in ParseOperand() 487 EndLoc)); in ParseOperand() 498 SMLoc EndLoc = getParser().getTok().getLoc(); in ParseOperand() local 500 EndLoc)); in ParseOperand() 510 SMLoc RegStartLoc, EndLoc; in ParseOperand() local [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 201 auto EndLoc = StartLoc; in VisitNamedDecl() local 204 EndLoc, in VisitNamedDecl() 218 auto EndLoc = Expr->getMemberLoc(); in VisitMemberExpr() local 220 RenameInfos.push_back({StartLoc, EndLoc, in VisitMemberExpr() 235 auto EndLoc = D.getFieldLoc(); in VisitDesignatedInitExpr() local 288 RenameInfos.push_back({EndLoc, EndLoc, in VisitDeclRefExpr() 325 assert(EndLoc.isValid() && in VisitDeclRefExpr() 331 EndLoc, in VisitDeclRefExpr() 407 auto EndLoc = EndLocationForType(Loc); in VisitTypeLoc() local 410 EndLoc, in VisitTypeLoc() [all …]
|
| H A D | USRFinder.cpp | 87 SourceLocation EndLoc = CurrDecl->getEndLoc(); in getNamedDeclAt() local 88 if (StartLoc.isValid() && EndLoc.isValid() && in getNamedDeclAt() 90 SM.isBeforeInTranslationUnit(EndLoc, Point)) in getNamedDeclAt()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | UseUncaughtExceptionsCheck.cpp | 53 SourceLocation EndLoc; in check() local 59 EndLoc = C->getEndLoc(); in check() 62 EndLoc = E->getEndLoc(); in check() 66 EndLoc = D->getEndLoc(); in check() 72 EndLoc = U->getNameInfo().getEndLoc(); in check() 80 Lexer::getSourceText(CharSourceRange::getTokenRange(BeginLoc, EndLoc), in check()
|
| H A D | UseNullptrCheck.cpp | 68 bool isReplaceableRange(SourceLocation StartLoc, SourceLocation EndLoc, in isReplaceableRange() argument 70 return SM.isWrittenInSameFile(StartLoc, EndLoc); in isReplaceableRange() 77 SourceLocation StartLoc, SourceLocation EndLoc) { in replaceWithNullptr() argument 78 CharSourceRange Range(SourceRange(StartLoc, EndLoc), true); in replaceWithNullptr() 235 SourceLocation EndLoc = FirstSubExpr->getEndLoc(); in VisitStmt() local 242 if (SM.isMacroArgExpansion(StartLoc) && SM.isMacroArgExpansion(EndLoc)) { in VisitStmt() 244 FileLocEnd = SM.getFileLoc(EndLoc); in VisitStmt() 258 if (SM.isMacroBodyExpansion(StartLoc) && SM.isMacroBodyExpansion(EndLoc)) { in VisitStmt() 267 EndLoc = SM.getFileLoc(EndLoc); in VisitStmt() 270 if (!isReplaceableRange(StartLoc, EndLoc, SM)) { in VisitStmt() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/AsmParser/ |
| H A D | SystemZAsmParser.cpp | 92 SMLoc StartLoc, EndLoc; member in __anon4f8b82ce0111::SystemZOperand 206 SMLoc StartLoc, SMLoc EndLoc) { in createImmTLS() argument 290 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc() 409 SMLoc StartLoc, EndLoc; member 809 Reg.EndLoc = Parser.getTok().getLoc(); in parseRegister() 921 SMLoc EndLoc = in parseAnyRegister() local 1212 SMLoc EndLoc = in parseAddress() local 1294 SMLoc EndLoc = in ParseDirectiveInsn() local 1377 EndLoc = Reg.EndLoc; in ParseRegister() 1516 SMLoc EndLoc = in parseOperand() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 44 SMLoc &EndLoc) override; 98 SMLoc StartLoc, EndLoc; member 111 EndLoc = o.EndLoc; in BPFOperand() 147 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc() 203 Op->EndLoc = S; in createToken() 212 Op->EndLoc = E; in createReg() 221 Op->EndLoc = E; in createImm() 327 SMLoc &EndLoc) { in ParseRegister() argument 328 if (tryParseRegister(RegNo, StartLoc, EndLoc) != MatchOperand_Success) in ParseRegister() 335 SMLoc &EndLoc) { in tryParseRegister() argument [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86Operand.h | 34 SMLoc StartLoc, EndLoc; member 91 : Kind(K), StartLoc(Start), EndLoc(End), OpDecl(nullptr), in X86Operand() 101 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc() 105 SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); } in getLocRange() 635 auto Res = std::make_unique<X86Operand>(Token, Loc, EndLoc); in CreateToken() 642 CreateReg(unsigned RegNo, SMLoc StartLoc, SMLoc EndLoc, 655 CreateDXReg(SMLoc StartLoc, SMLoc EndLoc) { in CreateDXReg() 656 return std::make_unique<X86Operand>(DXRegister, StartLoc, EndLoc); in CreateDXReg() 660 CreatePrefix(unsigned Prefixes, SMLoc StartLoc, SMLoc EndLoc) { in CreatePrefix() 661 auto Res = std::make_unique<X86Operand>(Prefix, StartLoc, EndLoc); in CreatePrefix() [all …]
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseHLSL.cpp | 20 SourceLocation *EndLoc) { in ParseHLSLSemantics() argument 31 if (EndLoc) in ParseHLSLSemantics() 32 *EndLoc = Tok.getLocation(); in ParseHLSLSemantics()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 16425 StartLoc, LParenLoc, EndLoc); in ActOnOpenMPOrderedClause() 16676 EndLoc); in ActOnOpenMPUpdateClause() 16726 EndLoc); in ActOnOpenMPAlignClause() 16733 SourceLocation EndLoc) { in ActOnOpenMPSingleExprWithArgClause() argument 16764 EndLoc); in ActOnOpenMPSingleExprWithArgClause() 17365 EndLoc); in ActOnOpenMPInitClause() 17482 SourceLocation EndLoc = Locs.EndLoc; in ActOnOpenMPVarListClause() local 17528 ColonLoc, EndLoc); in ActOnOpenMPVarListClause() 20465 Context, StartLoc, LParenLoc, EndLoc, in ActOnOpenMPDependClause() 22363 SourceLocation EndLoc) { in ActOnOpenMPDistScheduleClause() argument [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 641 EndLoc = getPreciseTokenLocEnd(getIncludeOrExpansionLoc(EndLoc)); in popRegions() 642 if (EndLoc.isInvalid()) in popRegions() 669 Region.setEndLoc(EndLoc); in popRegions() 672 MostRecentLocation = EndLoc; in popRegions() 676 EndLoc == getEndOfFileOrMacro(EndLoc)) in popRegions() 699 SourceLocation EndLoc = getEnd(S); in propagateCounts() local 709 MostRecentLocation = EndLoc; in propagateCounts() 774 MostRecentLocation = EndLoc; in adjustForOutOfOrderTraversal() 875 Region.setEndLoc(EndLoc); in terminateRegion() 930 if (StartLoc == EndLoc) in fillGapAreaWithCount() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 74 SourceLocation EndLoc = in check() local 79 << FixItHint::CreateReplacement(SourceRange(StartLoc, EndLoc), in check() 84 SourceLocation EndLoc = in check() local 93 << FixItHint::CreateReplacement(SourceRange(StartLoc, EndLoc), "isa"); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | BracesAroundStatementsCheck.cpp | 223 SourceLocation EndLoc; in checkStmt() local 226 EndLoc = EndLocHint; in checkStmt() 229 EndLoc = findEndLocation(*S, SM, Context); in checkStmt() 239 unsigned EndLine = SM.getSpellingLineNumber(EndLoc); in checkStmt() 254 SM.getSpellingLoc(StartLoc), SM.getSpellingLoc(EndLoc))), in checkStmt() 260 << FixItHint::CreateInsertion(EndLoc, ClosingInsertion); in checkStmt()
|
| /llvm-project-15.0.7/llvm/lib/Target/LoongArch/AsmParser/ |
| H A D | LoongArchAsmParser.cpp | 32 bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override; 34 SMLoc &EndLoc) override; 107 SMLoc StartLoc, EndLoc; member in __anon1ba74a0a0111::LoongArchOperand 170 SMLoc getEndLoc() const override { return EndLoc; } in getEndLoc() 212 Op->EndLoc = S; in createToken() 221 Op->EndLoc = E; in createReg() 230 Op->EndLoc = E; in createImm() 282 SMLoc &EndLoc) { in ParseRegister() argument 288 SMLoc &EndLoc) { in tryParseRegister() argument
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 4933 SourceLocation EndLoc); 5095 SourceLocation EndLoc); 10074 SourceLocation EndLoc, // location of the ; or {. 11397 SourceLocation EndLoc); 11427 SourceLocation EndLoc); 11453 SourceLocation EndLoc); 11468 SourceLocation EndLoc); 11498 SourceLocation EndLoc); 11507 SourceLocation EndLoc); 11763 SourceLocation CommaLoc, SourceLocation EndLoc); [all …]
|