From 37bc9f3786dc3bfefac4ad32f107c701110e2eaf Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 2 Apr 2017 23:57:10 +0000 Subject: [PATCH] Reformat. llvm-svn: 299343 --- llvm/include/llvm/ADT/SmallPtrSet.h | 4 ++-- llvm/include/llvm/TableGen/StringToOffsetTable.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/ADT/SmallPtrSet.h b/llvm/include/llvm/ADT/SmallPtrSet.h index b98cf6c..e9f822e 100644 --- a/llvm/include/llvm/ADT/SmallPtrSet.h +++ b/llvm/include/llvm/ADT/SmallPtrSet.h @@ -167,8 +167,8 @@ protected: const void *const *P = find_imp(Ptr); if (P == EndPointer()) return false; - - const void ** Loc = const_cast(P); + + const void **Loc = const_cast(P); assert(*Loc == Ptr && "broken find!"); *Loc = getTombstoneMarker(); NumTombstones++; diff --git a/llvm/include/llvm/TableGen/StringToOffsetTable.h b/llvm/include/llvm/TableGen/StringToOffsetTable.h index e5b61ed..aaf2a35 100644 --- a/llvm/include/llvm/TableGen/StringToOffsetTable.h +++ b/llvm/include/llvm/TableGen/StringToOffsetTable.h @@ -60,10 +60,10 @@ public: if (AggregateString[i] != '\\') continue; - assert(i+1 < AggregateString.size() && "Incomplete escape sequence!"); - if (isdigit(AggregateString[i+1])) { - assert(isdigit(AggregateString[i+2]) && - isdigit(AggregateString[i+3]) && + assert(i + 1 < AggregateString.size() && "Incomplete escape sequence!"); + if (isdigit(AggregateString[i + 1])) { + assert(isdigit(AggregateString[i + 2]) && + isdigit(AggregateString[i + 3]) && "Expected 3 digit octal escape!"); O << AggregateString[++i]; O << AggregateString[++i]; -- 2.7.4