aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-06-16 01:05:08 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-06-16 01:05:08 +0000
commit43bc78dd447ade24e254fdb2ed5d7a2b0995818c (patch)
treec40bfa8aea85473eeb62686617df92a632fc4ff0
parenteaed19e241359fb37da0269a64311e57cd53b83c (diff)
Cleanup the parameter naming style.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133120 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaExpr.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Sema/SemaExpr.cpp b/lib/Sema/SemaExpr.cpp
index f0ecb5800c..b37d5b3717 100644
--- a/lib/Sema/SemaExpr.cpp
+++ b/lib/Sema/SemaExpr.cpp
@@ -6364,13 +6364,13 @@ static bool ExprLooksBoolean(Expr *E) {
/// "int x = a + someBinaryCondition ? 1 : 2".
static void DiagnoseConditionalPrecedence(Sema &Self,
SourceLocation OpLoc,
- Expr *cond,
- Expr *lhs,
- Expr *rhs) {
+ Expr *Condition,
+ Expr *LHS,
+ Expr *RHS) {
BinaryOperatorKind CondOpcode;
Expr *CondRHS;
- if (!IsArithmeticBinaryExpr(cond, &CondOpcode, &CondRHS))
+ if (!IsArithmeticBinaryExpr(Condition, &CondOpcode, &CondRHS))
return;
if (!ExprLooksBoolean(CondRHS))
return;
@@ -6379,21 +6379,21 @@ static void DiagnoseConditionalPrecedence(Sema &Self,
// hand side that looks boolean, so warn.
PartialDiagnostic Warn = Self.PDiag(diag::warn_precedence_conditional)
- << cond->getSourceRange()
+ << Condition->getSourceRange()
<< BinaryOperator::getOpcodeStr(CondOpcode);
PartialDiagnostic FirstNote =
Self.PDiag(diag::note_precedence_conditional_silence)
<< BinaryOperator::getOpcodeStr(CondOpcode);
- SourceRange FirstParenRange(cond->getLocStart(),
- cond->getLocEnd());
+ SourceRange FirstParenRange(Condition->getLocStart(),
+ Condition->getLocEnd());
PartialDiagnostic SecondNote =
Self.PDiag(diag::note_precedence_conditional_first);
SourceRange SecondParenRange(CondRHS->getLocStart(),
- rhs->getLocEnd());
+ RHS->getLocEnd());
SuggestParentheses(Self, OpLoc, Warn, FirstNote, FirstParenRange,
SecondNote, SecondParenRange);