/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
H A D | SignedBitwiseCheck.cpp | 82 SourceLocation OperatorLoc; in check() local 86 OperatorLoc = UnaryOp->getOperatorLoc(); in check() 90 OperatorLoc = BinaryOp->getOperatorLoc(); in check() 93 OperatorLoc = BinaryOp->getOperatorLoc(); in check() 99 << IsUnary << SignedOperand->getSourceRange() << OperatorLoc; in check()
|
/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | PosixReturnCheck.cpp | 69 SourceLocation OperatorLoc = LessThanZeroOp->getOperatorLoc(); in check() 73 diag(OperatorLoc, "the comparison always evaluates to false because %0 " in check() 76 << FixItHint::CreateReplacement(OperatorLoc, NewBinOp); in check() 63 SourceLocation OperatorLoc = LessThanZeroOp->getOperatorLoc(); check() local
|
/llvm-project/clang/lib/AST/ |
H A D | ExprCXX.cpp | 372 SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc, in CXXPseudoDestructorExpr() 378 OperatorLoc(OperatorLoc), QualifierLoc(QualifierLoc), in CXXPseudoDestructorExpr() 593 SourceLocation OperatorLoc, in CXXOperatorCallExpr() 597 OperatorLoc, FPFeatures, /*MinNumArgs=*/0, UsesADL) { 614 ExprValueKind VK, SourceLocation OperatorLoc, in Create() 622 return new (Mem) CXXOperatorCallExpr(OpKind, Fn, Args, Ty, VK, OperatorLoc, in Create() 1493 SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc, in CXXDependentScopeMemberExpr() 1506 CXXDependentScopeMemberExprBits.OperatorLoc = OperatorLoc; in CXXDependentScopeMemberExpr() 373 CXXPseudoDestructorExpr(const ASTContext & Context,Expr * Base,bool isArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,TypeSourceInfo * ScopeType,SourceLocation ColonColonLoc,SourceLocation TildeLoc,PseudoDestructorTypeStorage DestroyedType) CXXPseudoDestructorExpr() argument 591 CXXOperatorCallExpr(OverloadedOperatorKind OpKind,Expr * Fn,ArrayRef<Expr * > Args,QualType Ty,ExprValueKind VK,SourceLocation OperatorLoc,FPOptionsOverride FPFeatures,ADLCallKind UsesADL) CXXOperatorCallExpr() argument 612 Create(const ASTContext & Ctx,OverloadedOperatorKind OpKind,Expr * Fn,ArrayRef<Expr * > Args,QualType Ty,ExprValueKind VK,SourceLocation OperatorLoc,FPOptionsOverride FPFeatures,ADLCallKind UsesADL) Create() argument 1491 CXXDependentScopeMemberExpr(const ASTContext & Ctx,Expr * Base,QualType BaseType,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,NamedDecl * FirstQualifierFoundInScope,DeclarationNameInfo MemberNameInfo,const TemplateArgumentListInfo * TemplateArgs) CXXDependentScopeMemberExpr() argument 1533 Create(const ASTContext & Ctx,Expr * Base,QualType BaseType,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,NamedDecl * FirstQualifierFoundInScope,DeclarationNameInfo MemberNameInfo,const TemplateArgumentListInfo * TemplateArgs) Create() argument 1595 UnresolvedMemberExpr(const ASTContext & Context,bool HasUnresolvedUsing,Expr * Base,QualType BaseType,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,const DeclarationNameInfo & MemberNameInfo,const TemplateArgumentListInfo * TemplateArgs,UnresolvedSetIterator Begin,UnresolvedSetIterator End) UnresolvedMemberExpr() argument 1635 Create(const ASTContext & Context,bool HasUnresolvedUsing,Expr * Base,QualType BaseType,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,const DeclarationNameInfo & MemberNameInfo,const TemplateArgumentListInfo * TemplateArgs,UnresolvedSetIterator Begin,UnresolvedSetIterator End) Create() argument 1692 Create(ASTContext & Context,SourceLocation OperatorLoc,NamedDecl * Pack,SourceLocation PackLoc,SourceLocation RParenLoc,std::optional<unsigned> Length,ArrayRef<TemplateArgument> PartialArgs) Create() argument [all...] |
H A D | Expr.cpp | 1672 SourceLocation OperatorLoc, in CreateEmpty() 1680 return new (Mem) OffsetOfExpr(C, type, OperatorLoc, tsi, comps, exprs, in OffsetOfExpr() 1692 SourceLocation OperatorLoc, TypeSourceInfo *tsi, in getFieldName() 1696 OperatorLoc(OperatorLoc), RParenLoc(RParenLoc), TSInfo(tsi), in getFieldName() 1728 MemberExpr::MemberExpr(Expr *Base, bool IsArrow, SourceLocation OperatorLoc, in MemberExpr() 1749 MemberExprBits.OperatorLoc = OperatorLoc; in MemberExpr() 1769 const ASTContext &C, Expr *Base, bool IsArrow, SourceLocation OperatorLoc, in Create() 1785 return new (Mem) MemberExpr(Base, IsArrow, OperatorLoc, QualifierLo in CreateEmpty() 1658 Create(const ASTContext & C,QualType type,SourceLocation OperatorLoc,TypeSourceInfo * tsi,ArrayRef<OffsetOfNode> comps,ArrayRef<Expr * > exprs,SourceLocation RParenLoc) Create() argument 1678 OffsetOfExpr(const ASTContext & C,QualType type,SourceLocation OperatorLoc,TypeSourceInfo * tsi,ArrayRef<OffsetOfNode> comps,ArrayRef<Expr * > exprs,SourceLocation RParenLoc) OffsetOfExpr() argument 1714 MemberExpr(Expr * Base,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,ValueDecl * MemberDecl,DeclAccessPair FoundDecl,const DeclarationNameInfo & NameInfo,const TemplateArgumentListInfo * TemplateArgs,QualType T,ExprValueKind VK,ExprObjectKind OK,NonOdrUseReason NOUR) MemberExpr() argument 1755 Create(const ASTContext & C,Expr * Base,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,ValueDecl * MemberDecl,DeclAccessPair FoundDecl,DeclarationNameInfo NameInfo,const TemplateArgumentListInfo * TemplateArgs,QualType T,ExprValueKind VK,ExprObjectKind OK,NonOdrUseReason NOUR) Create() argument [all...] |
/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | MakeSmartPtrCheck.cpp | 218 SourceLocation OperatorLoc = Expr->getOperatorLoc(); in checkReset() local 233 if (OperatorLoc.isInvalid()) { in checkReset() 250 CharSourceRange::getCharRange(OperatorLoc, ExprEnd), in checkReset() 258 insertHeader(Diag, SM.getFileID(OperatorLoc)); in checkReset()
|
/llvm-project/clang/include/clang/AST/ |
H A D | ExprCXX.h | 94 SourceLocation OperatorLoc, FPOptionsOverride FPFeatures, 103 SourceLocation OperatorLoc, FPOptionsOverride FPFeatures, 2629 SourceLocation OperatorLoc; 2651 Expr *Base, bool isArrow, SourceLocation OperatorLoc, 2684 SourceLocation getOperatorLoc() const { return OperatorLoc; } 3744 SourceLocation OperatorLoc, 3757 SourceLocation OperatorLoc, NestedNameSpecifierLoc QualifierLoc, 3790 return CXXDependentScopeMemberExprBits.OperatorLoc; 3958 SourceLocation OperatorLoc; 3976 SourceLocation OperatorLoc, 2628 SourceLocation OperatorLoc; global() variable 3956 SourceLocation OperatorLoc; global() variable 4262 SourceLocation OperatorLoc; global() variable 4287 SizeOfPackExpr(QualType SizeType,SourceLocation OperatorLoc,NamedDecl * Pack,SourceLocation PackLoc,SourceLocation RParenLoc,std::optional<unsigned> Length,ArrayRef<TemplateArgument> PartialArgs) SizeOfPackExpr() argument [all...] |
H A D | Expr.h | 2520 SourceLocation OperatorLoc, RParenLoc; in getComponent() 2533 SourceLocation OperatorLoc, TypeSourceInfo *tsi, in getIndexExpr() 2544 SourceLocation OperatorLoc, TypeSourceInfo *tsi, in setIndexExpr() 2552 SourceLocation getOperatorLoc() const { return OperatorLoc; } 2553 void setOperatorLoc(SourceLocation L) { OperatorLoc = L; } in classof() 2599 SourceLocation getBeginLoc() const LLVM_READONLY { return OperatorLoc; } 3275 MemberExpr(Expr *Base, bool IsArrow, SourceLocation OperatorLoc, 3286 SourceLocation OperatorLoc, 3418 SourceLocation getOperatorLoc() const { return MemberExprBits.OperatorLoc; } 2471 SourceLocation OperatorLoc, RParenLoc; global() variable
|
H A D | Stmt.h | 618 SourceLocation OperatorLoc; 1055 SourceLocation OperatorLoc;
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | RedundantExpressionCheck.cpp | 1333 SourceLocation OperatorLoc = NegateOperator->getOperatorLoc(); in check() 1336 diag(OperatorLoc, in check() 1338 SourceLocation LogicalNotLocation = OperatorLoc.getLocWithOffset(1); in check() 1342 CharSourceRange::getCharRange(OperatorLoc, LogicalNotLocation), "~"); in check() 1295 SourceLocation OperatorLoc = NegateOperator->getOperatorLoc(); check() local
|
/llvm-project/clang/lib/Sema/ |
H A D | DeclSpec.cpp | 1512 void UnqualifiedId::setOperatorFunctionId(SourceLocation OperatorLoc, in setOperatorFunctionId() 1516 StartLocation = OperatorLoc; in setOperatorFunctionId() 1517 EndLocation = OperatorLoc; in setOperatorFunctionId() 1504 setOperatorFunctionId(SourceLocation OperatorLoc,OverloadedOperatorKind Op,SourceLocation SymbolLocations[3]) setOperatorFunctionId() argument
|
H A D | TreeTransform.h | 2738 SourceLocation OperatorLoc, in RebuildUnaryExprOrTypeTrait() 2760 ExprResult RebuildOffsetOfExpr(SourceLocation OperatorLoc, 2764 return getSema().BuildBuiltinOffsetOf(OperatorLoc, Type, Components, in RebuildArraySubscriptExpr() 3616 SourceLocation OperatorLoc, 3626 OperatorLoc, IsArrow, in RebuildSizeOfPackExpr() 3638 SourceLocation OperatorLoc, 3649 OperatorLoc, IsArrow, in RebuildSourceLocExpr() 3664 ExprResult RebuildSizeOfPackExpr(SourceLocation OperatorLoc, NamedDecl *Pack, in RebuildConceptSpecializationExpr() 3669 return SizeOfPackExpr::Create(SemaRef.Context, OperatorLoc, Pack, PackLoc, in RebuildConceptSpecializationExpr() 17360 SourceLocation OperatorLoc, 2722 RebuildOffsetOfExpr(SourceLocation OperatorLoc,TypeSourceInfo * Type,ArrayRef<Sema::OffsetOfComponent> Components,SourceLocation RParenLoc) RebuildOffsetOfExpr() argument 3576 RebuildCXXDependentScopeMemberExpr(Expr * BaseE,QualType BaseType,bool IsArrow,SourceLocation OperatorLoc,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,NamedDecl * FirstQualifierInScope,const DeclarationNameInfo & MemberNameInfo,const TemplateArgumentListInfo * TemplateArgs) RebuildCXXDependentScopeMemberExpr() argument 3598 RebuildUnresolvedMemberExpr(Expr * BaseE,QualType BaseType,SourceLocation OperatorLoc,bool IsArrow,NestedNameSpecifierLoc QualifierLoc,SourceLocation TemplateKWLoc,NamedDecl * FirstQualifierInScope,LookupResult & R,const TemplateArgumentListInfo * TemplateArgs) RebuildUnresolvedMemberExpr() argument 3624 RebuildSizeOfPackExpr(SourceLocation OperatorLoc,NamedDecl * Pack,SourceLocation PackLoc,SourceLocation RParenLoc,std::optional<unsigned> Length,ArrayRef<TemplateArgument> PartialArgs) RebuildSizeOfPackExpr() argument 16400 RebuildCXXPseudoDestructorExpr(Expr * Base,SourceLocation OperatorLoc,bool isArrow,CXXScopeSpec & SS,TypeSourceInfo * ScopeType,SourceLocation CCLoc,SourceLocation TildeLoc,PseudoDestructorTypeStorage Destroyed) RebuildCXXPseudoDestructorExpr() argument [all...] |
/llvm-project/clang/include/clang/Sema/ |
H A D | DeclSpec.h | 1125 /// \param OperatorLoc the location of the 'operator' keyword. 1131 void setOperatorFunctionId(SourceLocation OperatorLoc, 1138 /// \param OperatorLoc the location of the 'operator' keyword. 1143 void setConversionFunctionId(SourceLocation OperatorLoc, in setConversionFunctionId() 1147 StartLocation = OperatorLoc; in setConversionFunctionId() 1140 setConversionFunctionId(SourceLocation OperatorLoc,ParsedType Ty,SourceLocation EndLoc) setConversionFunctionId() argument
|
H A D | Sema.h | 1291 AccessResult CheckAllocationAccess(SourceLocation OperatorLoc,
|
/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 1074 E->MemberExprBits.OperatorLoc = Record.readSourceLocation(); in VisitMemberExpr() 1969 E->OperatorLoc = readSourceLocation(); in VisitCXXPseudoDestructorExpr() 2037 E->CXXDependentScopeMemberExprBits.OperatorLoc = readSourceLocation(); in VisitDependentScopeDeclRefExpr() 2120 E->OperatorLoc = readSourceLocation(); in VisitTypeTraitExpr() 2183 E->OperatorLoc = readSourceLocation(); in VisitSizeOfPackExpr()
|
H A D | ASTWriterStmt.cpp | 2187 Record.AddSourceLocation(E->OperatorLoc); in VisitPackIndexingExpr()
|