/dports/editors/libreoffice/libreoffice-7.2.6.2/compilerplugins/clang/ |
H A D | constmethod.cxx | 90 currCXXMethodDecl = cxxMethodDecl; in TraverseCXXMethodDecl() 106 if (ignoreLocation(cxxMethodDecl) || !cxxMethodDecl->isThisDeclarationADefinition()) { in VisitCXXMethodDecl() 109 if (cxxMethodDecl->isConst()) in VisitCXXMethodDecl() 112 if (isInUnoIncludeFile(cxxMethodDecl)) { in VisitCXXMethodDecl() 119 if (cxxMethodDecl->isDeleted()) in VisitCXXMethodDecl() 121 if (cxxMethodDecl->isStatic()) in VisitCXXMethodDecl() 123 if (cxxMethodDecl->isOverloadedOperator()) in VisitCXXMethodDecl() 127 if (isa<CXXDestructorDecl>(cxxMethodDecl)) in VisitCXXMethodDecl() 133 if (cxxMethodDecl->isVirtual() ) { in VisitCXXMethodDecl() 141 if (!cxxMethodDecl->getIdentifier()) in VisitCXXMethodDecl() [all …]
|
H A D | virtualdown.cxx | 140 auto cxxMethodDecl = dyn_cast<CXXMethodDecl>(calleeFunctionDecl); in VisitCXXMemberCallExpr() local 141 if (!cxxMethodDecl) in VisitCXXMemberCallExpr() 144 while (cxxMethodDecl->getTemplateInstantiationPattern()) in VisitCXXMemberCallExpr() 145 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getTemplateInstantiationPattern()); in VisitCXXMemberCallExpr() 146 while (cxxMethodDecl->getInstantiatedFromMemberFunction()) in VisitCXXMemberCallExpr() 147 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getInstantiatedFromMemberFunction()); in VisitCXXMemberCallExpr() 148 if (cxxMethodDecl->getLocation().isValid() && !ignoreLocation(cxxMethodDecl)) in VisitCXXMemberCallExpr() 149 callSet.insert(niceName(cxxMethodDecl)); in VisitCXXMemberCallExpr() 187 std::string VirtualDown::niceName(const CXXMethodDecl* cxxMethodDecl) in niceName() argument 190 + cxxMethodDecl->getQualifiedNameAsString() + "("; in niceName() [all …]
|
H A D | finalprotected.cxx | 40 bool FinalProtected::VisitCXXMethodDecl(CXXMethodDecl const * cxxMethodDecl) in VisitCXXMethodDecl() argument 42 if (ignoreLocation(cxxMethodDecl)) { in VisitCXXMethodDecl() 45 if (cxxMethodDecl->getAccess() != AS_protected) { in VisitCXXMethodDecl() 48 if (!cxxMethodDecl->getParent()->hasAttr<FinalAttr>()) { in VisitCXXMethodDecl() 51 cxxMethodDecl = cxxMethodDecl->getCanonicalDecl(); in VisitCXXMethodDecl() 54 compat::getBeginLoc(cxxMethodDecl)) in VisitCXXMethodDecl() 55 << cxxMethodDecl->getSourceRange(); in VisitCXXMethodDecl()
|
H A D | unnecessaryvirtual.cxx | 89 std::string niceName(const CXXMethodDecl* cxxMethodDecl) in niceName() argument 91 while (cxxMethodDecl->getTemplateInstantiationPattern()) in niceName() 92 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getTemplateInstantiationPattern()); in niceName() 93 while (cxxMethodDecl->getInstantiatedFromMemberFunction()) in niceName() 94 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getInstantiatedFromMemberFunction()); in niceName() 95 std::string s = cxxMethodDecl->getReturnType().getCanonicalType().getAsString() in niceName() 96 + " " + cxxMethodDecl->getQualifiedNameAsString() + "("; in niceName() 97 for (const ParmVarDecl *pParmVarDecl : cxxMethodDecl->parameters()) { in niceName() 102 if (cxxMethodDecl->isConst()) { in niceName()
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/compilerplugins/clang/ |
H A D | constmethod.cxx | 84 currCXXMethodDecl = cxxMethodDecl; in TraverseCXXMethodDecl() 100 if (ignoreLocation(cxxMethodDecl) || !cxxMethodDecl->isThisDeclarationADefinition()) { in VisitCXXMethodDecl() 103 if (cxxMethodDecl->isConst()) in VisitCXXMethodDecl() 106 if (isInUnoIncludeFile(cxxMethodDecl)) { in VisitCXXMethodDecl() 113 if (cxxMethodDecl->isDeleted()) in VisitCXXMethodDecl() 115 if (cxxMethodDecl->isStatic()) in VisitCXXMethodDecl() 117 if (cxxMethodDecl->isOverloadedOperator()) in VisitCXXMethodDecl() 121 if (isa<CXXDestructorDecl>(cxxMethodDecl)) in VisitCXXMethodDecl() 127 if (cxxMethodDecl->isVirtual() ) { in VisitCXXMethodDecl() 135 if (!cxxMethodDecl->getIdentifier()) in VisitCXXMethodDecl() [all …]
|
H A D | virtualdown.cxx | 140 auto cxxMethodDecl = dyn_cast<CXXMethodDecl>(calleeFunctionDecl); in VisitCXXMemberCallExpr() local 141 if (!cxxMethodDecl) in VisitCXXMemberCallExpr() 144 while (cxxMethodDecl->getTemplateInstantiationPattern()) in VisitCXXMemberCallExpr() 145 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getTemplateInstantiationPattern()); in VisitCXXMemberCallExpr() 146 while (cxxMethodDecl->getInstantiatedFromMemberFunction()) in VisitCXXMemberCallExpr() 147 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getInstantiatedFromMemberFunction()); in VisitCXXMemberCallExpr() 148 if (cxxMethodDecl->getLocation().isValid() && !ignoreLocation(cxxMethodDecl)) in VisitCXXMemberCallExpr() 149 callSet.insert(niceName(cxxMethodDecl)); in VisitCXXMemberCallExpr() 187 std::string VirtualDown::niceName(const CXXMethodDecl* cxxMethodDecl) in niceName() argument 190 + cxxMethodDecl->getQualifiedNameAsString() + "("; in niceName() [all …]
|
H A D | finalprotected.cxx | 40 bool FinalProtected::VisitCXXMethodDecl(CXXMethodDecl const * cxxMethodDecl) in VisitCXXMethodDecl() argument 42 if (ignoreLocation(cxxMethodDecl)) { in VisitCXXMethodDecl() 45 if (cxxMethodDecl->getAccess() != AS_protected) { in VisitCXXMethodDecl() 48 if (!cxxMethodDecl->getParent()->hasAttr<FinalAttr>()) { in VisitCXXMethodDecl() 51 cxxMethodDecl = cxxMethodDecl->getCanonicalDecl(); in VisitCXXMethodDecl() 54 compat::getBeginLoc(cxxMethodDecl)) in VisitCXXMethodDecl() 55 << cxxMethodDecl->getSourceRange(); in VisitCXXMethodDecl()
|
H A D | unnecessaryvirtual.cxx | 89 std::string niceName(const CXXMethodDecl* cxxMethodDecl) in niceName() argument 91 while (cxxMethodDecl->getTemplateInstantiationPattern()) in niceName() 92 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getTemplateInstantiationPattern()); in niceName() 93 while (cxxMethodDecl->getInstantiatedFromMemberFunction()) in niceName() 94 cxxMethodDecl = dyn_cast<CXXMethodDecl>(cxxMethodDecl->getInstantiatedFromMemberFunction()); in niceName() 95 std::string s = cxxMethodDecl->getReturnType().getCanonicalType().getAsString() in niceName() 96 + " " + cxxMethodDecl->getQualifiedNameAsString() + "("; in niceName() 97 for (const ParmVarDecl *pParmVarDecl : cxxMethodDecl->parameters()) { in niceName() 102 if (cxxMethodDecl->isConst()) { in niceName()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 36 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 42 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 46 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 61 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 73 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 76 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 89 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 94 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/tools/extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm-cheri/llvm-project-37c49ff00e3eadce5d8703fdc4497f28458c64a8/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 36 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 42 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 46 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 61 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 73 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 76 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 89 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 94 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 36 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 42 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 46 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 61 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 73 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 76 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 89 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 94 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/lang/rust/rustc-1.58.1-src/src/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm-devel/llvm-project-f05c95f10fc1d8171071735af8ad3a9e87633120/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/wasi-compiler-rt13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/wasi-compiler-rt12/llvm-project-12.0.1.src/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(anyOf( in registerMatchers() 53 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 62 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 74 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 77 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 90 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 95 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/llvm13/llvm-project-13.0.1.src/clang-tools-extra/clang-tidy/bugprone/ |
H A D | UnhandledSelfAssignmentCheck.cpp | 33 const auto IsUserDefined = cxxMethodDecl( in registerMatchers() 39 cxxMethodDecl(hasParameter(0, parmVarDecl(hasType(referenceType())))); in registerMatchers() 43 const auto HasNoSelfCheck = cxxMethodDecl(unless(hasDescendant( in registerMatchers() 50 const auto HasNonTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 59 const auto HasTemplateSelfCopy = cxxMethodDecl( in registerMatchers() 71 cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( in registerMatchers() 74 DeclarationMatcher AdditionalMatcher = cxxMethodDecl(); in registerMatchers() 87 AdditionalMatcher = cxxMethodDecl(ofClass(cxxRecordDecl( in registerMatchers() 92 Finder->addMatcher(cxxMethodDecl(ofClass(cxxRecordDecl().bind("class")), in registerMatchers()
|
/dports/devel/tinygo/tinygo-0.14.1/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | UnconventionalAssignOperatorCheck.cpp | 26 const auto HasGoodReturnType = cxxMethodDecl(returns(lValueReferenceType( in registerMatchers() 34 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 38 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers() 42 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 50 cxxMethodDecl(IsSelfAssign, in registerMatchers() 56 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers() 64 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
|
/dports/devel/llvm10/llvm-10.0.1.src/tools/clang/tools/extra/clang-tidy/misc/ |
H A D | UnconventionalAssignOperatorCheck.cpp | 26 const auto HasGoodReturnType = cxxMethodDecl(returns(lValueReferenceType( in registerMatchers() 34 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 38 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers() 42 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 50 cxxMethodDecl(IsSelfAssign, in registerMatchers() 56 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers() 64 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
|
/dports/devel/llvm90/llvm-9.0.1.src/tools/clang/tools/extra/clang-tidy/misc/ |
H A D | UnconventionalAssignOperatorCheck.cpp | 26 const auto HasGoodReturnType = cxxMethodDecl(returns(lValueReferenceType( in registerMatchers() 34 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 38 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers() 42 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 50 cxxMethodDecl(IsSelfAssign, in registerMatchers() 56 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers() 64 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
|
/dports/devel/llvm80/llvm-8.0.1.src/tools/clang/tools/extra/clang-tidy/misc/ |
H A D | UnconventionalAssignOperatorCheck.cpp | 27 const auto HasGoodReturnType = cxxMethodDecl(returns(lValueReferenceType( in registerMatchers() 35 cxxMethodDecl(unless(anyOf(isDeleted(), isPrivate(), isImplicit())), in registerMatchers() 39 cxxMethodDecl(IsAssign, hasParameter(0, parmVarDecl(hasType(IsSelf)))) in registerMatchers() 43 cxxMethodDecl(IsAssign, unless(HasGoodReturnType)).bind("ReturnType"), in registerMatchers() 51 cxxMethodDecl(IsSelfAssign, in registerMatchers() 57 cxxMethodDecl(IsSelfAssign, anyOf(isConst(), isVirtual())).bind("cv"), in registerMatchers() 65 const auto IsGoodAssign = cxxMethodDecl(IsAssign, HasGoodReturnType); in registerMatchers()
|