]> granicus.if.org Git - clang/commitdiff
clang-format a recent commit I made
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Nov 2014 05:48:40 +0000 (05:48 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Nov 2014 05:48:40 +0000 (05:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222317 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/IdentifierTable.h
lib/ARCMigrate/ObjCMT.cpp
lib/CodeGen/CodeGenModule.cpp
lib/Lex/HeaderSearch.cpp
lib/Sema/SemaExprCXX.cpp
lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
tools/diagtool/ListWarnings.cpp

index 50f9b8899891b9c890afa9475ca5de283231af60..ed923393c8e23e9367fdc7eec3497a97ab208fb9 100644 (file)
@@ -494,7 +494,7 @@ public:
     // Make sure getName() knows how to find the IdentifierInfo
     // contents.
     II->Entry = &Entry;
-    
+
     // If this is the 'import' contextual keyword, mark it as such.
     if (Name.equals("import"))
       II->setModulesImport(true);
index 4ad961c31fd1a205996a9236b2778379bfa97731..af9c472550ed4d3d7f202b99fc14fa709099b461 100644 (file)
@@ -102,7 +102,7 @@ public:
   llvm::SmallPtrSet<ObjCProtocolDecl *, 32> ObjCProtocolDecls;
   llvm::SmallVector<const Decl *, 8> CFFunctionIBCandidates;
   llvm::StringSet<> WhiteListFilenames;
-  
+
   ObjCMigrateASTConsumer(StringRef migrateDir,
                          unsigned astMigrateActions,
                          FileRemapper &remapper,
index 7462f96e51a4725c2e8f3ca3d5b3fd039f36d916..a6f2d6cfe59b9a9910281720e7c945fd2e856886 100644 (file)
@@ -2606,7 +2606,7 @@ CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal) {
   unsigned StringLength = 0;
   llvm::StringMapEntry<llvm::Constant*> &Entry =
     GetConstantStringEntry(CFConstantStringMap, Literal, StringLength);
-  
+
   if (auto *C = Entry.second)
     return C;
   
@@ -2680,8 +2680,8 @@ CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal) {
   
   // String pointer.
   llvm::Constant *C =
-    llvm::ConstantDataArray::getString(VMContext, Entry.first());
-  
+      llvm::ConstantDataArray::getString(VMContext, Entry.first());
+
   llvm::GlobalValue::LinkageTypes Linkage;
   bool isConstant;
   Linkage = llvm::GlobalValue::PrivateLinkage;
@@ -2713,7 +2713,7 @@ CodeGenModule::GetAddrOfConstantString(const StringLiteral *Literal) {
                      ? NSStringNonFragileABISection
                      : NSStringSection);
   Entry.second = GV;
-  
+
   return GV;
 }
 
index 259fbd57bb770c2fcac857290bc53c3cc1809e5d..6345e757087d8c8baca2a6fac8820afb449f1a64 100644 (file)
@@ -790,7 +790,7 @@ const FileEntry *HeaderSearch::LookupFile(
         return MSFE;
       }
 
-      LookupFileCacheInfo &CacheLookup  = LookupFileCache[Filename];
+      LookupFileCacheInfo &CacheLookup = LookupFileCache[Filename];
       CacheLookup.HitIdx = LookupFileCache[ScratchFilename].HitIdx;
       // FIXME: SuggestedModule.
       return FE;
index c0866432e66c6c918a66226dcfa2ffc66dfa93cb..4733b0b54b9b31d3bb40a79a0e911a468bb350ab 100644 (file)
@@ -587,12 +587,12 @@ Sema::ActOnCXXThrow(Scope *S, SourceLocation OpLoc, Expr *Ex) {
     //   When certain criteria are met, an implementation is allowed to omit the
     //   copy/move construction of a class object [...]
     //
-    //     - in a throw-expression, when the operand is the name of a 
+    //     - in a throw-expression, when the operand is the name of a
     //       non-volatile automatic object (other than a function or catch-
     //       clause parameter) whose scope does not extend beyond the end of the
-    //       innermost enclosing try-block (if there is one), the copy/move 
-    //       operation from the operand to the exception object (15.1) can be 
-    //       omitted by constructing the automatic object directly into the 
+    //       innermost enclosing try-block (if there is one), the copy/move
+    //       operation from the operand to the exception object (15.1) can be
+    //       omitted by constructing the automatic object directly into the
     //       exception object
     if (DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Ex->IgnoreParens()))
       if (VarDecl *Var = dyn_cast<VarDecl>(DRE->getDecl())) {
index 4ec3d2750e5639dbe12eb417077181a647ca7bbb..d717e3fe86d2ff2df69604a2013c9b7a01794ea4 100644 (file)
@@ -203,7 +203,7 @@ int AnalyzerOptions::getOptionAsInteger(StringRef Name, int DefaultVal) {
   SmallString<10> StrBuf;
   llvm::raw_svector_ostream OS(StrBuf);
   OS << DefaultVal;
-  
+
   StringRef V = Config.insert(std::make_pair(Name, OS.str())).first->second;
   int Res = DefaultVal;
   bool b = V.getAsInteger(10, Res);
index 5a26fc2282785c9f465b676109873f3ae0d96ca4..3e6e88306e24712ef7273a2ff2ccd50227b17cd1 100644 (file)
@@ -97,11 +97,10 @@ int ListWarnings::run(unsigned int argc, char **argv, llvm::raw_ostream &out) {
   double avgDiagsPerFlag = (double) Flagged.size() / flagHistogram.size();
   out << "  Average number of diagnostics per flag: "
       << llvm::format("%.4g", avgDiagsPerFlag) << '\n';
-    
+
   out << "  Number in -Wpedantic (not covered by other -W flags): "
-      << flagHistogram["pedantic"].size()
-      << '\n';
-  
+      << flagHistogram["pedantic"].size() << '\n';
+
   out << '\n';
   
   return 0;