diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 09:51:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-27 10:31:42 +0200 |
commit | 5585bc2fbbe8b6072cfdd5cdaaf326f5124632ce (patch) | |
tree | a7f6570cd2c0df4f379e1e7a88f9067f04bb5ce0 /compilerplugins/clang/unusedmethods.cxx | |
parent | 13c26e565bd8b633e4748c63103c3801b017217b (diff) |
rename loplugin::Plugin::parentStmt
to getParentStmt and rename parentFunctionDecl to getParentFunctionDecl,
so I don't keep using accidentally naming my variables the same as the
functions.
Change-Id: I66f9452458c8b439e5132191ac5219fb6d420708
Diffstat (limited to 'compilerplugins/clang/unusedmethods.cxx')
-rw-r--r-- | compilerplugins/clang/unusedmethods.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index 881427fcfd9b..73bc1ac5d66a 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -230,13 +230,13 @@ bool UnusedMethods::VisitCallExpr(CallExpr* expr) gotfunc: logCallToRootMethods(calleeFunctionDecl, callSet); - const Stmt* parent = parentStmt(expr); + const Stmt* parent = getParentStmt(expr); // Now do the checks necessary for the "can be private" analysis CXXMethodDecl* calleeMethodDecl = dyn_cast<CXXMethodDecl>(calleeFunctionDecl); if (calleeMethodDecl && calleeMethodDecl->getAccess() != AS_private) { - const FunctionDecl* parentFunctionOfCallSite = parentFunctionDecl(expr); + const FunctionDecl* parentFunctionOfCallSite = getParentFunctionDecl(expr); if (parentFunctionOfCallSite != calleeFunctionDecl) { if (!parentFunctionOfCallSite || !ignoreLocation(parentFunctionOfCallSite)) { calledFromOutsideSet.insert(niceName(calleeFunctionDecl)); @@ -333,7 +333,7 @@ bool UnusedMethods::VisitDeclRefExpr( const DeclRefExpr* declRefExpr ) const CXXMethodDecl* methodDecl = dyn_cast<CXXMethodDecl>(functionDecl); if (methodDecl && methodDecl->getAccess() != AS_private) { - const FunctionDecl* parentFunctionOfCallSite = parentFunctionDecl(declRefExpr); + const FunctionDecl* parentFunctionOfCallSite = getParentFunctionDecl(declRefExpr); if (parentFunctionOfCallSite != functionDecl) { if (!parentFunctionOfCallSite || !ignoreLocation(parentFunctionOfCallSite)) { calledFromOutsideSet.insert(niceName(functionDecl)); |