[cfe-commits] r39457 - in /cfe/cfe/trunk: AST/SemaExpr.cpp Sema/SemaExpr.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:39 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:38 2007
New Revision: 39457
URL: http://llvm.org/viewvc/llvm-project?rev=39457&view=rev
Log:
fix some indentation funkiness
Modified:
cfe/cfe/trunk/AST/SemaExpr.cpp
cfe/cfe/trunk/Sema/SemaExpr.cpp
Modified: cfe/cfe/trunk/AST/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/SemaExpr.cpp?rev=39457&r1=39456&r2=39457&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/SemaExpr.cpp (original)
+++ cfe/cfe/trunk/AST/SemaExpr.cpp Wed Jul 11 11:44:38 2007
@@ -636,8 +636,8 @@
if (resType->isArithmeticType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -649,8 +649,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -668,8 +668,8 @@
(lhsType->isIntegerType() && rhsType->isPointerType()))
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -686,8 +686,8 @@
(lhsType->isPointerType() && rhsType->isPointerType()))
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -699,8 +699,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -720,8 +720,8 @@
return Context.IntTy;
}
Diag(loc, diag::err_typecheck_invalid_operands,
- lType.getAsString(), rType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lType.getAsString(), rType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -740,8 +740,8 @@
return Context.IntTy;
}
Diag(loc, diag::err_typecheck_invalid_operands,
- lType.getAsString(), rType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lType.getAsString(), rType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -753,8 +753,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -767,8 +767,8 @@
if (lhsType->isScalarType() || rhsType->isScalarType())
return Context.IntTy;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -800,8 +800,8 @@
break;
case Incompatible:
Diag(loc, diag::err_typecheck_assign_incompatible,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
hadError = true;
break;
case PointerFromInt:
@@ -823,8 +823,7 @@
}
inline QualType Sema::CheckCommaOperands( // C99 6.5.17
- Expr *lex, Expr *rex, SourceLocation loc)
-{
+ Expr *lex, Expr *rex, SourceLocation loc) {
return UsualUnaryConversion(rex->getType());
}
@@ -849,7 +848,7 @@
// the operand is a modifiable lvalue.
if (!op->isModifiableLvalue()) {
Diag(OpLoc, diag::err_typecheck_invalid_lvalue_incr_decr,
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
return resType;
@@ -900,7 +899,7 @@
if (const VarDecl *vd = dyn_cast<VarDecl>(dcl)) {
if (vd->getStorageClass() == VarDecl::Register) {
Diag(OpLoc, diag::err_typecheck_address_of_register,
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
} else
@@ -920,7 +919,7 @@
if (PointerType *PT = dyn_cast<PointerType>(qType))
return PT->getPointeeType();
Diag(OpLoc, diag::err_typecheck_unary_expr, qType.getAsString(),
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
Modified: cfe/cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Sema/SemaExpr.cpp?rev=39457&r1=39456&r2=39457&view=diff
==============================================================================
--- cfe/cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/cfe/trunk/Sema/SemaExpr.cpp Wed Jul 11 11:44:38 2007
@@ -636,8 +636,8 @@
if (resType->isArithmeticType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -649,8 +649,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -668,8 +668,8 @@
(lhsType->isIntegerType() && rhsType->isPointerType()))
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -686,8 +686,8 @@
(lhsType->isPointerType() && rhsType->isPointerType()))
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -699,8 +699,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -720,8 +720,8 @@
return Context.IntTy;
}
Diag(loc, diag::err_typecheck_invalid_operands,
- lType.getAsString(), rType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lType.getAsString(), rType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -740,8 +740,8 @@
return Context.IntTy;
}
Diag(loc, diag::err_typecheck_invalid_operands,
- lType.getAsString(), rType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lType.getAsString(), rType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -753,8 +753,8 @@
if (resType->isIntegerType())
return resType;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -767,8 +767,8 @@
if (lhsType->isScalarType() || rhsType->isScalarType())
return Context.IntTy;
Diag(loc, diag::err_typecheck_invalid_operands,
- lex->getType().getAsString(), rex->getType().getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lex->getType().getAsString(), rex->getType().getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
return QualType();
}
@@ -800,8 +800,8 @@
break;
case Incompatible:
Diag(loc, diag::err_typecheck_assign_incompatible,
- lhsType.getAsString(), rhsType.getAsString(),
- lex->getSourceRange(), rex->getSourceRange());
+ lhsType.getAsString(), rhsType.getAsString(),
+ lex->getSourceRange(), rex->getSourceRange());
hadError = true;
break;
case PointerFromInt:
@@ -823,8 +823,7 @@
}
inline QualType Sema::CheckCommaOperands( // C99 6.5.17
- Expr *lex, Expr *rex, SourceLocation loc)
-{
+ Expr *lex, Expr *rex, SourceLocation loc) {
return UsualUnaryConversion(rex->getType());
}
@@ -849,7 +848,7 @@
// the operand is a modifiable lvalue.
if (!op->isModifiableLvalue()) {
Diag(OpLoc, diag::err_typecheck_invalid_lvalue_incr_decr,
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
return resType;
@@ -900,7 +899,7 @@
if (const VarDecl *vd = dyn_cast<VarDecl>(dcl)) {
if (vd->getStorageClass() == VarDecl::Register) {
Diag(OpLoc, diag::err_typecheck_address_of_register,
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
} else
@@ -920,7 +919,7 @@
if (PointerType *PT = dyn_cast<PointerType>(qType))
return PT->getPointeeType();
Diag(OpLoc, diag::err_typecheck_unary_expr, qType.getAsString(),
- op->getSourceRange());
+ op->getSourceRange());
return QualType();
}
More information about the cfe-commits
mailing list