[cfe-commits] r95756 - /cfe/trunk/lib/Sema/SemaChecking.cpp

Ted Kremenek kremenek at apple.com
Tue Feb 9 18:16:30 PST 2010


Author: kremenek
Date: Tue Feb  9 20:16:30 2010
New Revision: 95756

URL: http://llvm.org/viewvc/llvm-project?rev=95756&view=rev
Log:
Convert tabs to spaces.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=95756&r1=95755&r2=95756&view=diff

==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Tue Feb  9 20:16:30 2010
@@ -1074,12 +1074,12 @@
 private:
   SourceRange getFormatStringRange();
   SourceRange getFormatSpecifierRange(const char *startSpecifier,
-									  unsigned specifierLen);
+                                      unsigned specifierLen);
   SourceLocation getLocationOfByte(const char *x);
   
   bool HandleAmount(const analyze_printf::OptionalAmount &Amt,
                     unsigned MissingArgDiag, unsigned BadTypeDiag,
-					const char *startSpecifier, unsigned specifierLen);
+          const char *startSpecifier, unsigned specifierLen);
   
   bool MatchType(QualType A, QualType B, bool ignoreSign);
   
@@ -1094,7 +1094,7 @@
 SourceRange CheckPrintfHandler::
 getFormatSpecifierRange(const char *startSpecifier, unsigned specifierLen) {
   return SourceRange(getLocationOfByte(startSpecifier),
-					 getLocationOfByte(startSpecifier+specifierLen-1));
+                     getLocationOfByte(startSpecifier+specifierLen-1));
 }
 
 SourceLocation CheckPrintfHandler::getLocationOfByte(const char *x) {
@@ -1179,8 +1179,8 @@
 CheckPrintfHandler::HandleAmount(const analyze_printf::OptionalAmount &Amt,
                                  unsigned MissingArgDiag,
                                  unsigned BadTypeDiag,
-								 const char *startSpecifier,
-								 unsigned specifierLen) {
+                                 const char *startSpecifier,
+                                 unsigned specifierLen) {
 
   if (Amt.hasDataArgument()) {
     ++NumConversions;
@@ -1226,14 +1226,14 @@
   if (!HandleAmount(FS.getFieldWidth(),
                     diag::warn_printf_asterisk_width_missing_arg,
                     diag::warn_printf_asterisk_width_wrong_type,
-					startSpecifier, specifierLen)) {
+          startSpecifier, specifierLen)) {
     return false;
   }
     
   if (!HandleAmount(FS.getPrecision(),
                     diag::warn_printf_asterisk_precision_missing_arg,
                     diag::warn_printf_asterisk_precision_wrong_type,
-					startSpecifier, specifierLen)) {
+          startSpecifier, specifierLen)) {
     return false;
   }
 
@@ -1249,7 +1249,7 @@
   if (!CS.consumesDataArgument()) {
     // FIXME: Technically specifying a precision or field width here
     // makes no sense.  Worth issuing a warning at some point.
-	return true;
+    return true;
   }
   
   ++NumConversions;  
@@ -1313,10 +1313,10 @@
 }
 
 void Sema::CheckPrintfString(const StringLiteral *FExpr,
-							 const Expr *OrigFormatExpr,
-							 const CallExpr *TheCall, bool HasVAListArg,
-							 unsigned format_idx, unsigned firstDataArg) {
-  
+                             const Expr *OrigFormatExpr,
+                             const CallExpr *TheCall, bool HasVAListArg,
+                             unsigned format_idx, unsigned firstDataArg) {
+
   // CHECK: is the format string a wide literal?
   if (FExpr->isWide()) {
     Diag(FExpr->getLocStart(),





More information about the cfe-commits mailing list