aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/detachingbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/detachingbase.h')
-rw-r--r--src/checks/detachingbase.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/checks/detachingbase.h b/src/checks/detachingbase.h
index 2963ea85..10da3586 100644
--- a/src/checks/detachingbase.h
+++ b/src/checks/detachingbase.h
@@ -41,9 +41,15 @@ class CXXMethodDecl;
class DetachingBase : public CheckBase
{
public:
- explicit DetachingBase(const std::string &name, ClazyContext *context);
+ explicit DetachingBase(const std::string &name, ClazyContext *context, Options = Option_None);
protected:
- bool isDetachingMethod(clang::CXXMethodDecl *) const;
+
+ enum DetachingMethodType {
+ DetachingMethod,
+ DetachingMethodWithConstCounterPart
+ };
+
+ bool isDetachingMethod(clang::CXXMethodDecl *, DetachingMethodType = DetachingMethod) const;
};
#endif