summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/store/constantfunction.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/store/constantfunction.cxx')
-rw-r--r--compilerplugins/clang/store/constantfunction.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/store/constantfunction.cxx b/compilerplugins/clang/store/constantfunction.cxx
index 5dcbcc274024..d1d67f605c2f 100644
--- a/compilerplugins/clang/store/constantfunction.cxx
+++ b/compilerplugins/clang/store/constantfunction.cxx
@@ -432,7 +432,7 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
}
const CompoundStmt *pCompoundStmt = dyn_cast<CompoundStmt>(pFunctionDecl->getBody());
- bool aEmptyBody = false;
+ bool bEmptyBody = false;
if (pCompoundStmt) {
if (pCompoundStmt->size() > 1) {
return true;
@@ -454,13 +454,13 @@ bool ConstantFunction::VisitFunctionDecl(const FunctionDecl * pFunctionDecl) {
}
}
} else {
- aEmptyBody = true;
+ bEmptyBody = true;
}
}
std::string aMessage = "this ";
aMessage += pCXXMethodDecl ? "method" : "function";
- if (aEmptyBody) {
+ if (bEmptyBody) {
aMessage += " is empty and should be removed, " + aFunctionName;
} else {
aMessage += " returns a constant value and should be converted to a constant "