]> granicus.if.org Git - clang/commitdiff
Fix and reword some typos
authorAlp Toker <alp@nuanti.com>
Mon, 30 Dec 2013 02:06:29 +0000 (02:06 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 30 Dec 2013 02:06:29 +0000 (02:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198191 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/ASTUnit.h
lib/Format/Format.cpp

index 4971cac208d1962403faace202e24be4510792d6..3901e7d1479564c1a7bd425a566c430f1be2ea47 100644 (file)
@@ -206,8 +206,7 @@ public:
     return Preamble;
   }
 
-  /// Data that allows us to tell if a file that was used in a preambule was
-  /// changed.
+  /// Data used to determine if a file used in the preamble has been changed.
   struct PreambleFileHash {
     /// All files have size set.
     off_t Size;
index b7b41c9741a3a42ad93b13d931aa0b2a6bc919df..7eb7a2c9c888f66a08191253f8743b5bdc16f5c1 100644 (file)
@@ -511,7 +511,7 @@ public:
     }
     if (I[1]->First->Type == TT_FunctionLBrace &&
         Style.BreakBeforeBraces != FormatStyle::BS_Attach) {
-      // Check for Limit <= 2 to accomodate for the " {".
+      // Check for Limit <= 2 to account for the " {".
       if (Limit <= 2 || (Style.ColumnLimit == 0 && containsMustBreak(TheLine)))
         return 0;
       Limit -= 2;