From ba5b4dc60c3763ab896ba35e33f2664e15e815c4 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Mon, 30 Dec 2013 02:06:29 +0000 Subject: [PATCH] Fix and reword some typos llvm-svn: 198191 --- clang/include/clang/Frontend/ASTUnit.h | 3 +-- clang/lib/Format/Format.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Frontend/ASTUnit.h b/clang/include/clang/Frontend/ASTUnit.h index 4971cac208d1..3901e7d14795 100644 --- a/clang/include/clang/Frontend/ASTUnit.h +++ b/clang/include/clang/Frontend/ASTUnit.h @@ -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; diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index b7b41c9741a3..7eb7a2c9c888 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -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;