From f4cc791befbca874331de1ec2bf6a925ff7e0b70 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 17 Dec 2013 17:25:19 +0000 Subject: [PATCH] Fix indentation from r197490 plus some typos git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197507 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/RecordLayoutBuilder.cpp | 2 +- lib/Driver/ToolChain.cpp | 15 +++++++-------- lib/Parse/Parser.cpp | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/AST/RecordLayoutBuilder.cpp b/lib/AST/RecordLayoutBuilder.cpp index 0cb8bd8151..b6e9db4a8c 100644 --- a/lib/AST/RecordLayoutBuilder.cpp +++ b/lib/AST/RecordLayoutBuilder.cpp @@ -2193,7 +2193,7 @@ MicrosoftRecordLayoutBuilder::getAdjustedFieldInfo(const FieldDecl *FD) { Layout.getRequiredAlignment()); FieldInfo.second = std::max(FieldInfo.second, Layout.getRequiredAlignment()); - // Track zero-sized subobjects here where it's already avaliable. + // Track zero-sized subobjects here where it's already available. if (Layout.hasZeroSizedSubObject()) HasZeroSizedSubObject = true; } diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index 29888bbf27..9f783e8f66 100644 --- a/lib/Driver/ToolChain.cpp +++ b/lib/Driver/ToolChain.cpp @@ -157,14 +157,13 @@ bool ToolChain::HasNativeLLVMSupport() const { bool ToolChain::isCrossCompiling() const { llvm::Triple HostTriple(LLVM_HOST_TRIPLE); switch (HostTriple.getArch()) { - // The A32/T32/T16 instruction sets are not seperate architectures in - // this context. - case llvm::Triple::arm: - case llvm::Triple::thumb: - return getArch() != llvm::Triple::arm && - getArch() != llvm::Triple::thumb; - default: - return HostTriple.getArch() != getArch(); + // The A32/T32/T16 instruction sets are not separate architectures in this + // context. + case llvm::Triple::arm: + case llvm::Triple::thumb: + return getArch() != llvm::Triple::arm && getArch() != llvm::Triple::thumb; + default: + return HostTriple.getArch() != getArch(); } } diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index f7c0f3f550..79a02eea42 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -1443,8 +1443,8 @@ Parser::TryAnnotateName(bool IsAddressOfOperand, // Look up and classify the identifier. We don't perform any typo-correction // after a scope specifier, because in general we can't recover from typos - // there (eg, after correcting 'A::tempalte B::C', we would need to jump - // back into scope specifier parsing). + // there (eg, after correcting 'A::tempalte B::C' [sic], we would need to + // jump back into scope specifier parsing). Sema::NameClassification Classification = Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, Next, IsAddressOfOperand, SS.isEmpty() ? CCC : 0); -- 2.40.0