| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtOpenMP.h | 273 SourceLocation StartLoc; variable 297 : Stmt(SC), Kind(K), StartLoc(std::move(StartLoc)), in OMPExecutableDirective() 1934 StartLoc, EndLoc) {} in OMPSingleDirective() 1985 StartLoc, EndLoc) {} in OMPMasterDirective() 2477 StartLoc, EndLoc) {} in OMPTaskDirective() 2746 StartLoc, EndLoc) {} in OMPFlushDirective() 2799 StartLoc, EndLoc) {} in OMPDepobjDirective() 2930 StartLoc, EndLoc) {} in OMPAtomicDirective() 3106 StartLoc, EndLoc) {} in OMPTargetDirective() 3498 StartLoc, EndLoc) {} in OMPTeamsDirective() [all …]
|
| H A D | OpenMPClause.h | 57 SourceLocation StartLoc; variable 67 : StartLoc(StartLoc), EndLoc(EndLoc), Kind(K) {} in OMPClause() 71 SourceLocation getBeginLoc() const { return StartLoc; } in getBeginLoc() 77 void setLocStart(SourceLocation Loc) { StartLoc = Loc; } in setLocStart() 85 bool isImplicit() const { return StartLoc.isInvalid(); } in isImplicit() 178 SourceLocation StartLoc; member 186 : StartLoc(StartLoc), LParenLoc(LParenLoc), EndLoc(EndLoc) {} in OMPVarListLocTy() 358 : OMPClause(llvm::omp::OMPC_align, StartLoc, EndLoc), in OMPAlignClause() 373 SourceLocation StartLoc, 552 : OMPClause(llvm::omp::OMPC_if, StartLoc, EndLoc), in OMPIfClause() [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 409 SMLoc StartLoc, EndLoc; member 761 Reg.StartLoc = Parser.getTok().getLoc(); in parseRegister() 905 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAnyRegister() local 916 Error(StartLoc, "invalid register"); in parseAnyRegister() 935 Error(StartLoc, "invalid register"); in parseAnyRegister() 974 Reg.StartLoc = Parser.getTok().getLoc(); in parseIntegerRegister() 1111 SMLoc StartLoc = Parser.getTok().getLoc(); in parseAddress() local 1376 StartLoc = Reg.StartLoc; in ParseRegister() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | StmtOpenMP.cpp | 307 StartLoc, EndLoc, CollapsedNum); in Create() 342 StartLoc, EndLoc, CollapsedNum); in Create() 457 StartLoc, EndLoc, CollapsedNum); in Create() 1053 StartLoc, EndLoc, CollapsedNum); in Create() 1414 StartLoc, EndLoc, CollapsedNum); in Create() 1461 StartLoc, EndLoc, CollapsedNum); in Create() 1627 StartLoc, EndLoc, CollapsedNum); in Create() 1900 StartLoc, EndLoc, CollapsedNum); in Create() 1960 StartLoc, EndLoc, CollapsedNum); in Create() 2084 StartLoc, EndLoc, CollapsedNum); in Create() [all …]
|
| H A D | OpenMPClause.cpp | 333 SourceLocation StartLoc, in Create() argument 383 SourceLocation StartLoc, in Create() argument 526 SourceLocation StartLoc, in Create() argument 637 SourceLocation StartLoc, in Create() argument 640 return new (C) OMPAlignClause(A, StartLoc, LParenLoc, EndLoc); in Create() 942 SourceLocation StartLoc, in Create() argument 947 Clause->setLocStart(StartLoc); in Create() 961 SourceLocation StartLoc, in Create() argument 964 Clause->setLocStart(StartLoc); in Create() 979 Clause->setLocStart(StartLoc); in Create() [all …]
|
| H A D | DeclTemplate.cpp | 742 const ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in Create() argument 906 : CXXRecordDecl(DK, TK, Context, DC, StartLoc, IdLoc, in ClassTemplateSpecializationDecl() 922 SourceLocation StartLoc, in Create() argument 1042 SourceLocation StartLoc, in ClassTemplatePartialSpecializationDecl() argument 1051 TK, DC, StartLoc, IdLoc, in ClassTemplatePartialSpecializationDecl() 1062 SourceLocation StartLoc, SourceLocation IdLoc, in Create() argument 1284 : VarDecl(DK, Context, DC, StartLoc, IdLoc, in VarTemplateSpecializationDecl() 1297 ASTContext &Context, DeclContext *DC, SourceLocation StartLoc, in Create() argument 1301 VarTemplateSpecialization, Context, DC, StartLoc, IdLoc, in Create() 1355 ASTContext &Context, DeclContext *DC, SourceLocation StartLoc, in VarTemplatePartialSpecializationDecl() argument [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | BracesAroundStatementsCheck.cpp | 129 SourceLocation StartLoc = findRParenLoc(S, SM, Context); in check() local 130 if (StartLoc.isInvalid()) in check() 132 checkStmt(Result, S->getBody(), StartLoc); in check() 134 SourceLocation StartLoc = findRParenLoc(S, SM, Context); in check() local 135 if (StartLoc.isInvalid()) in check() 219 SourceLocation StartLoc = in checkStmt() local 233 assert(StartLoc.isValid()); in checkStmt() 238 unsigned StartLine = SM.getSpellingLineNumber(StartLoc); in checkStmt() 244 auto Diag = diag(StartLoc, "statement should be inside braces"); in checkStmt() 254 SM.getSpellingLoc(StartLoc), SM.getSpellingLoc(EndLoc))), in checkStmt() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| 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() 82 SourceLocation PreviousLocation = StartLoc.getLocWithOffset(-1); in replaceWithNullptr() 234 SourceLocation StartLoc = FirstSubExpr->getBeginLoc(); in VisitStmt() local 243 SourceLocation FileLocStart = SM.getFileLoc(StartLoc), in VisitStmt() 260 getOutermostMacroName(StartLoc, SM, Context.getLangOpts()); in VisitStmt() 266 StartLoc = SM.getFileLoc(StartLoc); in VisitStmt() 270 if (!isReplaceableRange(StartLoc, EndLoc, SM)) { in VisitStmt() [all …]
|
| H A D | UseUsingCheck.cpp | 74 SourceLocation StartLoc = MatchedDecl->getBeginLoc(); in check() local 76 if (StartLoc.isMacroID() && IgnoreMacros) in check() 82 if (MatchedDecl->getUnderlyingType()->isArrayType() || StartLoc.isMacroID()) { in check() 83 diag(StartLoc, UseUsingWarning); in check()
|
| /llvm-project-15.0.7/llvm/lib/Target/MSP430/AsmParser/ |
| H A D | MSP430AsmParser.cpp | 49 OperandMatchResultTy tryParseRegister(unsigned &RegNo, SMLoc &StartLoc, 292 bool MSP430AsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, in ParseRegister() argument 294 switch (tryParseRegister(RegNo, StartLoc, EndLoc)) { in ParseRegister() 296 return Error(StartLoc, "invalid register name"); in ParseRegister() 319 StartLoc = T.getLoc(); in tryParseRegister() 459 SMLoc StartLoc, EndLoc; in ParseOperand() local 460 if (!ParseRegister(RegNo, StartLoc, EndLoc)) { in ParseOperand() 469 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand() local 494 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand() local 507 SMLoc StartLoc = getParser().getTok().getLoc(); in ParseOperand() local [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 200 auto StartLoc = Decl->getLocation(); in VisitNamedDecl() local 201 auto EndLoc = StartLoc; in VisitNamedDecl() 203 RenameInfo Info = {StartLoc, in VisitNamedDecl() 217 auto StartLoc = Expr->getMemberLoc(); in VisitMemberExpr() local 220 RenameInfos.push_back({StartLoc, EndLoc, in VisitMemberExpr() 234 auto StartLoc = D.getFieldLoc(); in VisitDesignatedInitExpr() local 236 RenameInfos.push_back({StartLoc, EndLoc, in VisitDesignatedInitExpr() 276 auto StartLoc = Expr->getBeginLoc(); in VisitDeclRefExpr() local 330 RenameInfo Info = {StartLoc, in VisitDeclRefExpr() 409 RenameInfo Info = {StartLoc, in VisitTypeLoc() [all …]
|
| H A D | USRFinder.cpp | 86 SourceLocation StartLoc = CurrDecl->getBeginLoc(); in getNamedDeclAt() local 88 if (StartLoc.isValid() && EndLoc.isValid() && in getNamedDeclAt() 89 SM.isBeforeInTranslationUnit(StartLoc, Point) != in getNamedDeclAt()
|
| /llvm-project-15.0.7/llvm/lib/Target/BPF/AsmParser/ |
| H A D | BPFAsmParser.cpp | 43 OperandMatchResultTy tryParseRegister(unsigned &RegNo, SMLoc &StartLoc, 98 SMLoc StartLoc, EndLoc; member 110 StartLoc = o.StartLoc; in BPFOperand() 145 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc() 202 Op->StartLoc = S; in createToken() 211 Op->StartLoc = S; in createReg() 220 Op->StartLoc = S; in createImm() 326 bool BPFAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, in ParseRegister() argument 329 return Error(StartLoc, "invalid register name"); in ParseRegister() 334 SMLoc &StartLoc, in tryParseRegister() argument [all …]
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseInit.cpp | 243 SourceLocation StartLoc = T.getOpenLocation(); in ParseInitializerWithPotentialDesignator() local 256 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator() 258 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator() 272 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator() 273 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator() 295 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator() 297 StartLoc, ConsumeToken(), nullptr, nullptr); in ParseInitializerWithPotentialDesignator() 300 CheckArrayDesignatorSyntax(*this, StartLoc, Desig); in ParseInitializerWithPotentialDesignator() 322 return ParseAssignmentExprWithObjCMessageExprStart(StartLoc, in ParseInitializerWithPotentialDesignator() 358 StartLoc, SourceLocation(), nullptr, Idx.get()); in ParseInitializerWithPotentialDesignator() [all …]
|
| H A D | ParseDeclCXX.cpp | 1113 Diag(StartLoc, DiagID) << PrevSpec; in ParseDecltypeSpecifier() 1141 Tok.setLocation(StartLoc); in AnnotateExistingDecltypeSpecifier() 1149 SourceLocation StartLoc = ConsumeToken(); in ParseUnderlyingTypeSpecifier() local 1172 Diag(StartLoc, DiagID) << PrevSpec; in ParseUnderlyingTypeSpecifier() 2046 TagType, StartLoc, NameLoc.isValid() ? NameLoc : StartLoc, PrevSpec, in ParseClassSpecifier() 2054 Diag(StartLoc, DiagID) << PrevSpec; in ParseClassSpecifier() 2192 SourceRange Range(StartLoc, EndLocation); in ParseBaseSpecifier() 4503 SourceLocation EndLoc = StartLoc; in ParseCXX11Attributes() 4518 SourceRange Range(StartLoc, EndLoc); in DiagnoseAndSkipCXX11Attributes() 4618 Toks[0].setLocation(StartLoc); in ParseMicrosoftUuidAttributeArgs() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/llvm/ |
| H A D | PreferIsaOrDynCastInConditionalsCheck.cpp | 73 SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc(); in check() local 75 StartLoc.getLocWithOffset(StringRef("cast").size() - 1); in check() 79 << FixItHint::CreateReplacement(SourceRange(StartLoc, EndLoc), in check() 83 SourceLocation StartLoc = MatchedDecl->getCallee()->getExprLoc(); in check() local 85 StartLoc.getLocWithOffset(StringRef("cast").size() - 1); in check() 93 << FixItHint::CreateReplacement(SourceRange(StartLoc, EndLoc), "isa"); in check()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaOpenMP.cpp | 5056 SemaRef.Diag(StartLoc, in checkNestingOfRegions() 6753 DSAStack->addTargetDirLocation(StartLoc); in ActOnOpenMPExecutableDirective() 12262 DSAStack->addAtomicDirectiveLoc(StartLoc); in ActOnOpenMPAtomicDirective() 12347 Loc = StartLoc; in ActOnOpenMPAtomicDirective() 16425 StartLoc, LParenLoc, EndLoc); in ActOnOpenMPOrderedClause() 17480 SourceLocation StartLoc = Locs.StartLoc; in ActOnOpenMPVarListClause() local 20465 Context, StartLoc, LParenLoc, EndLoc, in ActOnOpenMPDependClause() 20508 StartLoc, in ActOnOpenMPDeviceClause() 21423 MapperId.setLoc(StartLoc); in checkMappableExpressionList() 21641 SemaRef.Diag(StartLoc, in checkMappableExpressionList() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | ExplicitConstructorCheck.cpp | 40 SourceLocation StartLoc, SourceLocation EndLoc, in findToken() argument 42 if (StartLoc.isMacroID() || EndLoc.isMacroID()) in findToken() 44 FileID File = Sources.getFileID(Sources.getSpellingLoc(StartLoc)); in findToken() 46 const char *StartChar = Sources.getCharacterData(StartLoc); in findToken() 47 Lexer Lex(StartLoc, LangOpts, StartChar, StartChar, Buf.end()); in findToken()
|
| /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() 98 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc() 105 SMRange getLocRange() const { return SMRange(StartLoc, EndLoc); } in getLocRange() 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() 686 auto Res = std::make_unique<X86Operand>(Memory, StartLoc, EndLoc); [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.cpp | 590 if (StartLoc && !FalseCount) { in pushRegion() 591 MostRecentLocation = *StartLoc; in pushRegion() 661 StartLoc = getIncludeOrExpansionLoc(StartLoc); in popRegions() 662 if (StartLoc.isInvalid()) in popRegions() 668 Region.setStartLoc(StartLoc); in popRegions() 675 if (StartLoc == getStartOfFileOrMacro(StartLoc) && in popRegions() 698 SourceLocation StartLoc = getStart(S); in propagateCounts() local 864 handleFileExit(StartLoc); in extendRegion() 866 Region.setStartLoc(StartLoc); in extendRegion() 930 if (StartLoc == EndLoc) in fillGapAreaWithCount() [all …]
|
| H A D | CGLoopInfo.h | 91 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc, 120 llvm::DebugLoc StartLoc; variable 206 void push(llvm::BasicBlock *Header, const llvm::DebugLoc &StartLoc, 213 llvm::ArrayRef<const Attr *> Attrs, const llvm::DebugLoc &StartLoc,
|
| H A D | CGLoopInfo.cpp | 422 if (StartLoc) { in createMetadata() 423 LoopProperties.push_back(StartLoc.getAsMDNode()); in createMetadata() 475 const llvm::DebugLoc &StartLoc, const llvm::DebugLoc &EndLoc, in LoopInfo() argument 477 : Header(Header), Attrs(Attrs), StartLoc(StartLoc), EndLoc(EndLoc), in LoopInfo() 495 Attrs.DistributeEnable == LoopAttributes::Unspecified && !StartLoc && in LoopInfo() 586 void LoopInfoStack::push(BasicBlock *Header, const llvm::DebugLoc &StartLoc, in push() argument 589 new LoopInfo(Header, StagedAttrs, StartLoc, EndLoc, in push() 598 const llvm::DebugLoc &StartLoc, in push() argument 801 push(Header, StartLoc, EndLoc); in push()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 3096 DeclGroupPtrTy ActOnModuleDecl(SourceLocation StartLoc, 3121 DeclResult ActOnModuleImport(SourceLocation StartLoc, 3125 DeclResult ActOnModuleImport(SourceLocation StartLoc, 4932 SourceLocation StartLoc, 5101 SourceLocation StartLoc, 6630 ExprResult ActOnCXXDelete(SourceLocation StartLoc, 11426 OMPClause *ActOnOpenMPFullClause(SourceLocation StartLoc, 11496 SourceLocation StartLoc, SourceLocation LParenLoc, 11673 SourceLocation StartLoc, SourceLocation LParenLoc, 11680 ArrayRef<Expr *> VarList, SourceLocation StartLoc, [all …]
|
| /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; 33 OperandMatchResultTy tryParseRegister(unsigned &RegNo, SMLoc &StartLoc, 107 SMLoc StartLoc, EndLoc; member in __anon1ba74a0a0111::LoongArchOperand 168 SMLoc getStartLoc() const override { return StartLoc; } in getStartLoc() 211 Op->StartLoc = S; in createToken() 220 Op->StartLoc = S; in createReg() 229 Op->StartLoc = S; in createImm() 281 bool LoongArchAsmParser::ParseRegister(unsigned &RegNo, SMLoc &StartLoc, in ParseRegister() argument 287 SMLoc &StartLoc, in tryParseRegister() argument
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/ |
| H A D | HeaderGuard.cpp | 215 SourceLocation StartLoc = SM.getLocForStartOfFile(FID); in checkGuardlessHeaders() local 216 if (StartLoc.isInvalid()) in checkGuardlessHeaders() 232 SM.isWrittenInSameFile(StartLoc, DefineLoc)) { in checkGuardlessHeaders() 243 Check->diag(StartLoc, "header is missing header guard") in checkGuardlessHeaders() 245 StartLoc, "#ifndef " + CPPVar + "\n#define " + CPPVar + "\n\n") in checkGuardlessHeaders()
|