summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/inlinefields.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 09:51:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 10:31:42 +0200
commit5585bc2fbbe8b6072cfdd5cdaaf326f5124632ce (patch)
treea7f6570cd2c0df4f379e1e7a88f9067f04bb5ce0 /compilerplugins/clang/inlinefields.cxx
parent13c26e565bd8b633e4748c63103c3801b017217b (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/inlinefields.cxx')
-rw-r--r--compilerplugins/clang/inlinefields.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/compilerplugins/clang/inlinefields.cxx b/compilerplugins/clang/inlinefields.cxx
index 5ffb93080e3e..42551dc61660 100644
--- a/compilerplugins/clang/inlinefields.cxx
+++ b/compilerplugins/clang/inlinefields.cxx
@@ -184,7 +184,7 @@ bool InlineFields::VisitBinAssign(const BinaryOperator * binaryOp)
if (!fieldDecl || !fieldDecl->getType()->isPointerType()) {
return true;
}
- const FunctionDecl* parentFunction = parentFunctionDecl(binaryOp);
+ const FunctionDecl* parentFunction = getParentFunctionDecl(binaryOp);
if (!parentFunction) {
return true;
}
@@ -227,7 +227,7 @@ bool InlineFields::VisitCXXDeleteExpr(const CXXDeleteExpr * deleteExpr)
}
// TODO for some reason, this part is not working properly, it doesn't find the parent
// function for delete statements properly
- const FunctionDecl* parentFunction = parentFunctionDecl(deleteExpr);
+ const FunctionDecl* parentFunction = getParentFunctionDecl(deleteExpr);
if (!parentFunction) {
return true;
}