Skip to content

Commit

Permalink
Foundation.h is imported by prefix headers, so don't import anywhere …
Browse files Browse the repository at this point in the history
…else.
  • Loading branch information
nygard committed Dec 10, 2012
1 parent 35b790d commit 73e85f2
Show file tree
Hide file tree
Showing 39 changed files with 0 additions and 77 deletions.
2 changes: 0 additions & 2 deletions Source/CDBalanceFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface CDBalanceFormatter : NSObject

- (id)initWithString:(NSString *)str;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDClassDump.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#import "CDFile.h" // For CDArch

#define CLASS_DUMP_BASE_VERSION "3.4 (64 bit)"
Expand Down
2 changes: 0 additions & 2 deletions Source/CDDataCursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface CDDataCursor : NSObject

- (id)initWithData:(NSData *)data;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDFatArch.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#import "CDFile.h" // For CDArch

@class CDDataCursor;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDFile.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#include <mach/machine.h> // For cpu_type_t, cpu_subtype_t

typedef struct {
Expand Down
2 changes: 0 additions & 2 deletions Source/CDLoadCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

// Importing these here saves us from importing them in the implementation of every load command.
#include <mach-o/loader.h>
#import "CDMachOFileDataCursor.h"
Expand Down
2 changes: 0 additions & 2 deletions Source/CDMethodType.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType;

@interface CDMethodType : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCInstanceVariable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType, CDTypeController;

@interface CDOCInstanceVariable : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDTypeController;

@interface CDOCMethod : NSObject <NSCopying>
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDOCSymtab;

@interface CDOCModule : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCProperty.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType;

@interface CDOCProperty : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDTypeController;
@class CDVisitor, CDVisitorPropertyState;
@class CDOCMethod, CDOCProperty;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDOCSymtab.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDOCCategory, CDOCClass;

@interface CDOCSymtab : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDObjectiveCProcessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDMachOFile, CDSection, CDTypeController;
@class CDClassDump, CDVisitor;
@class CDOCClass, CDOCCategory, CDOCProtocol;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDProtocolUniquer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDOCProtocol;

@interface CDProtocolUniquer : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDRelocationInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#include <mach-o/reloc.h>

typedef enum : NSUInteger {
Expand Down
2 changes: 0 additions & 2 deletions Source/CDSearchPathState.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface CDSearchPathState : NSObject

@property (nonatomic, strong) NSString *executablePath;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDSection.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDDataCursor, CDMachOFile, CDLCSegment32;

@interface CDSection : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDStructureInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType;

@interface CDStructureInfo : NSObject <NSCopying>
Expand Down
2 changes: 0 additions & 2 deletions Source/CDStructureTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDClassDump, CDType, CDStructureInfo, CDTypeController, CDTypeFormatter;

typedef enum : NSUInteger {
Expand Down
2 changes: 0 additions & 2 deletions Source/CDSymbol.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#include <mach-o/nlist.h>

extern NSString *const ObjCClassSymbolPrefix;
Expand Down
1 change: 0 additions & 1 deletion Source/CDTopoSortNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>
#import "CDTopologicalSortProtocol.h"

typedef enum : NSUInteger {
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTopologicalSortProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

// A rather clunky way to avoid warnings in CDTopoSortNode.m regarding -retain not implemented by protocols
@protocol CDTopologicalSort <NSObject>
@property (nonatomic, readonly) NSString *identifier;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDType.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDTypeController, CDTypeFormatter, CDTypeName;

@interface CDType : NSObject <NSCopying>
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTypeController.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@protocol CDTypeControllerDelegate;

@class CDClassDump, CDStructureTable, CDType, CDTypeFormatter;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTypeFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType, CDTypeController;

@interface CDTypeFormatter : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTypeLexer.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

#define TK_EOS 0
#define TK_NUMBER 257
#define TK_IDENTIFIER 258
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTypeName.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface CDTypeName : NSObject <NSCopying>

@property (strong) NSString *name;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDTypeParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDType, CDTypeLexer;

extern NSString *CDExceptionName_SyntaxError;
Expand Down
2 changes: 0 additions & 2 deletions Source/CDVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDClassDump, CDObjectiveCProcessor, CDOCProtocol, CDOCMethod, CDOCInstanceVariable, CDOCClass, CDOCCategory, CDOCProperty;
@class CDVisitorPropertyState;

Expand Down
2 changes: 0 additions & 2 deletions Source/CDVisitorPropertyState.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@class CDOCProperty;

@interface CDVisitorPropertyState : NSObject
Expand Down
2 changes: 0 additions & 2 deletions Source/NSArray-CDExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface NSArray (CDExtensions)

- (NSArray *)reversedArray;
Expand Down
2 changes: 0 additions & 2 deletions Source/NSData-CDExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface NSData (CDExtensions)

- (NSString *)hexString;
Expand Down
2 changes: 0 additions & 2 deletions Source/NSError-CDExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface NSError (CDExtensions)

@end
Expand Down
2 changes: 0 additions & 2 deletions Source/NSScanner-CDExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface NSScanner (CDExtensions)

+ (NSCharacterSet *)cdOtherCharacterSet;
Expand Down
2 changes: 0 additions & 2 deletions Source/NSString-CDExtensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
// This file is part of class-dump, a utility for examining the Objective-C segment of Mach-O files.
// Copyright (C) 1997-1998, 2000-2001, 2004-2012 Steve Nygard.

#import <Foundation/Foundation.h>

@interface NSString (CDExtensions)

+ (NSString *)stringWithFileSystemRepresentation:(const char *)str;
Expand Down
2 changes: 0 additions & 2 deletions class-dump.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
#include <stdlib.h>
#include <mach-o/arch.h>

#import <Foundation/Foundation.h>

#import "CDClassDump.h"
#import "CDFindMethodVisitor.h"
#import "CDClassDumpVisitor.h"
Expand Down
2 changes: 0 additions & 2 deletions deprotect.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include <sysexits.h>
#include <mach-o/arch.h>

#import <Foundation/Foundation.h>

#import "CDClassDump.h"
#import "CDMachOFile.h"
#import "CDFatFile.h"
Expand Down
2 changes: 0 additions & 2 deletions formatType.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
#include <getopt.h>
#include <stdlib.h>

#import <Foundation/Foundation.h>

#import "CDClassDump.h"
#import "CDTypeFormatter.h"
#import "CDBalanceFormatter.h"
Expand Down

0 comments on commit 73e85f2

Please sign in to comment.