diff options
author | Benjamin Ni <benjaminniri@hotmail.com> | 2015-09-25 11:41:53 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-02 23:40:57 +0100 |
commit | be729e772196f33543e21cb9bac21add87726b20 (patch) | |
tree | f2150f458e2b07f8924b4702d37c09c8dd52215a /compilerplugins/clang/stringconstant.cxx | |
parent | 6ccf68622e51c1b727dd042c1c1a71b5d1fd6a12 (diff) |
tdf#94269: Replace "n" prefix for bool variables with "b"
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797
Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'compilerplugins/clang/stringconstant.cxx')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 2688542fcda5..f9b3f5a55ce6 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -123,15 +123,15 @@ bool StringConstant::TraverseCallExpr(CallExpr * expr) { return false; } calls_.push(expr); - bool res = true; + bool bRes = true; for (auto * e: expr->children()) { if (!TraverseStmt(e)) { - res = false; + bRes = false; break; } } calls_.pop(); - return res; + return bRes; } bool StringConstant::TraverseCXXMemberCallExpr(CXXMemberCallExpr * expr) { @@ -139,15 +139,15 @@ bool StringConstant::TraverseCXXMemberCallExpr(CXXMemberCallExpr * expr) { return false; } calls_.push(expr); - bool res = true; + bool bRes = true; for (auto * e: expr->children()) { if (!TraverseStmt(e)) { - res = false; + bRes = false; break; } } calls_.pop(); - return res; + return bRes; } bool StringConstant::TraverseCXXOperatorCallExpr(CXXOperatorCallExpr * expr) @@ -156,15 +156,15 @@ bool StringConstant::TraverseCXXOperatorCallExpr(CXXOperatorCallExpr * expr) return false; } calls_.push(expr); - bool res = true; + bool bRes = true; for (auto * e: expr->children()) { if (!TraverseStmt(e)) { - res = false; + bRes = false; break; } } calls_.pop(); - return res; + return bRes; } bool StringConstant::TraverseCXXConstructExpr(CXXConstructExpr * expr) { @@ -172,15 +172,15 @@ bool StringConstant::TraverseCXXConstructExpr(CXXConstructExpr * expr) { return false; } calls_.push(expr); - bool res = true; + bool bRes = true; for (auto * e: expr->children()) { if (!TraverseStmt(e)) { - res = false; + bRes = false; break; } } calls_.pop(); - return res; + return bRes; } bool StringConstant::VisitCallExpr(CallExpr const * expr) { |