Skip to content

Commit ea0ac3a

Browse files
[gardening] Remove all tabs in C++ code
1 parent 248e9a7 commit ea0ac3a

File tree

14 files changed

+34
-34
lines changed

14 files changed

+34
-34
lines changed

lib/Basic/Platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ StringRef swift::getPlatformNameForTriple(const llvm::Triple &triple) {
9393

9494
if (triple.isOSFreeBSD())
9595
return "freebsd";
96-
96+
9797
if (triple.isOSWindows())
9898
return "windows";
9999

lib/ClangImporter/CFTypeInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include "llvm/ADT/PointerUnion.h"
2020

2121
namespace clang {
22-
class RecordDecl;
23-
class TypedefNameDecl;
22+
class RecordDecl;
23+
class TypedefNameDecl;
2424
}
2525

2626
namespace swift {

lib/SIL/SILGlobalVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SILGlobalVariable::SILGlobalVariable(SILModule &Module, SILLinkage Linkage,
4848
Location(Loc),
4949
Linkage(unsigned(Linkage)),
5050
Fragile(IsFragile),
51-
VDecl(Decl) {
51+
VDecl(Decl) {
5252
IsDeclaration = isAvailableExternally(Linkage);
5353
setLet(Decl ? Decl->isLet() : false);
5454
InitializerF = nullptr;

stdlib/public/stubs/Stubs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,13 +276,13 @@ __muloti4(ti_int a, ti_int b, int* overflow)
276276
if (a == MIN)
277277
{
278278
if (b != 0 && b != 1)
279-
*overflow = 1;
280-
return result;
279+
*overflow = 1;
280+
return result;
281281
}
282282
if (b == MIN)
283283
{
284284
if (a != 0 && a != 1)
285-
*overflow = 1;
285+
*overflow = 1;
286286
return result;
287287
}
288288
ti_int sa = a >> (N - 1);

test/ClangModules/Inputs/enum-error.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
@class NSString;
66
extern NSString *const TestErrorDomain;
77
typedef NS_ERROR_ENUM(int, TestError, TestErrorDomain) {
8-
TENone,
9-
TEOne,
10-
TETwo,
8+
TENone,
9+
TEOne,
10+
TETwo,
1111
};
1212

1313
TestError getErr();

test/IDE/Inputs/custom-modules/InferImportAsMember.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static void IAMStruct1DoSomething(struct IAMMutableStruct1 iamStruct1);
9595

9696
typedef struct TDStruct TDStruct;
9797
struct TDStruct {
98-
double x;
98+
double x;
9999
};
100100
// FIXME: the below doesn't appear in the output
101101
const TDStruct TDStructCreateWithFloat(float Float);

test/IDE/Inputs/mock-sdk/Bar.framework/Headers/Bar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum BarForwardDeclaredEnum {
1313
#define BAR_MACRO_1 0
1414

1515
typedef struct {
16-
int count;
16+
int count;
1717
} SomeItemSet;
1818

1919
typedef SomeItemSet SomeEnvironment;

test/IRGen/Inputs/StaticInline.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#import <Foundation/Foundation.h>
22

33
static inline NSString *staticInlineFun() {
4-
return [[NSLocale currentLocale] localeIdentifier];
4+
return [[NSLocale currentLocale] localeIdentifier];
55
}

test/Inputs/clang-importer-sdk/usr/include/Foundation.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -397,19 +397,19 @@ typedef NS_ENUM(NSUInteger, NSPostingStyle) {
397397
};
398398

399399
typedef NS_ENUM(NSUInteger, NSXMLNodeKind) {
400-
NSXMLInvalidKind = 0,
401-
NSXMLDocumentKind,
402-
NSXMLElementKind,
403-
NSXMLAttributeKind,
404-
NSXMLNamespaceKind,
405-
NSXMLProcessingInstructionKind,
406-
NSXMLCommentKind,
407-
NSXMLTextKind,
408-
NSXMLDTDKind __attribute__((swift_name("DTDKind"))),
409-
NSXMLEntityDeclarationKind,
410-
NSXMLAttributeDeclarationKind,
411-
NSXMLElementDeclarationKind,
412-
NSXMLNotationDeclarationKind
400+
NSXMLInvalidKind = 0,
401+
NSXMLDocumentKind,
402+
NSXMLElementKind,
403+
NSXMLAttributeKind,
404+
NSXMLNamespaceKind,
405+
NSXMLProcessingInstructionKind,
406+
NSXMLCommentKind,
407+
NSXMLTextKind,
408+
NSXMLDTDKind __attribute__((swift_name("DTDKind"))),
409+
NSXMLEntityDeclarationKind,
410+
NSXMLAttributeDeclarationKind,
411+
NSXMLElementDeclarationKind,
412+
NSXMLNotationDeclarationKind
413413
};
414414

415415
// From CoreFoundation
@@ -566,7 +566,7 @@ typedef NS_OPTIONS(NSInteger, AlertBuzzes) {
566566
typedef NS_OPTIONS(NSUInteger, NSBitmapFormat) {
567567
NSAlphaFirstBitmapFormat = 1 << 0, // 0 means is alpha last (RGBA, CMYKA, etc.)
568568
NSAlphaNonpremultipliedBitmapFormat = 1 << 1, // 0 means is premultiplied
569-
NSFloatingPointSamplesBitmapFormat = 1 << 2, // 0 is integer
569+
NSFloatingPointSamplesBitmapFormat = 1 << 2, // 0 is integer
570570

571571
NS16BitLittleEndianBitmapFormat /*NS_ENUM_AVAILABLE_MAC(10_51)*/ = (1 << 8),
572572
NS32BitLittleEndianBitmapFormat /*NS_ENUM_AVAILABLE_MAC(10_51)*/ = (1 << 9),
@@ -582,7 +582,7 @@ typedef NS_OPTIONS(NSUInteger, NSBitmapFormatReversed) {
582582

583583
NSAlphaFirstBitmapFormatR = 1 << 0, // 0 means is alpha last (RGBA, CMYKA, etc.)
584584
NSAlphaNonpremultipliedBitmapFormatR = 1 << 1, // 0 means is premultiplied
585-
NSFloatingPointSamplesBitmapFormatR = 1 << 2, // 0 is integer
585+
NSFloatingPointSamplesBitmapFormatR = 1 << 2, // 0 is integer
586586
};
587587

588588
typedef NS_OPTIONS(NSUInteger, NSBitmapFormat2) {

test/Inputs/clang-importer-sdk/usr/include/user_objc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef CF_OPTIONS(UInt32, AudioComponentInstantiationOptions) {
3535
typedef CF_OPTIONS(UInt32, AudioComponentFlags) {
3636
kAudioComponentFlag_Unsearchable = 1,
3737
kAudioComponentFlag_SandboxSafe = 2,
38-
kAudioComponentFlag_IsV3AudioUnit = 4
38+
kAudioComponentFlag_IsV3AudioUnit = 4
3939
};
4040

4141
// ...and this one has both complications.

test/SourceKit/Inputs/libIDE-mock-sdk/Bar.framework/Headers/Bar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum BarForwardDeclaredEnum {
1313
#define BAR_MACRO_1 0
1414

1515
typedef struct {
16-
int count;
16+
int count;
1717
} SomeItemSet;
1818

1919
typedef SomeItemSet SomeEnvironment;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
typedef struct {
3-
long width;
4-
long height;
3+
long width;
4+
long height;
55
} NUPixelSize;

tools/SourceKit/lib/SwiftLang/SwiftInterfaceGenContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace SourceKit {
3131
typedef IntrusiveRefCntPtr<ASTUnit> ASTUnitRef;
3232

3333
class SwiftInterfaceGenContext :
34-
public swift::ThreadSafeRefCountedBase<SwiftInterfaceGenContext> {
34+
public swift::ThreadSafeRefCountedBase<SwiftInterfaceGenContext> {
3535
public:
3636
static SwiftInterfaceGenContextRef create(StringRef DocumentName,
3737
bool IsModule,

tools/sil-opt/SILOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Passes(llvm::cl::desc("Passes:"),
9898
llvm::cl::values(
9999
#define PASS(ID, NAME, DESCRIPTION) clEnumValN(PassKind::ID, NAME, DESCRIPTION),
100100
#include "swift/SILOptimizer/PassManager/Passes.def"
101-
clEnumValEnd));
101+
clEnumValEnd));
102102

103103
static llvm::cl::opt<bool>
104104
PrintStats("print-stats", llvm::cl::desc("Print various statistics"));

0 commit comments

Comments
 (0)