Skip to content

Commit 99a6932

Browse files
committed
Add DVT framework. Change undo strategy
Signed-off-by: onevcat <onevcat@gmail.com>
1 parent 5a175d0 commit 99a6932

280 files changed

Lines changed: 2741 additions & 33 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VVDocumenter-Xcode.xcodeproj/project.pbxproj

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
D17B50CA179A34C400B11773 /* VVBaseCommenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D16AFCD31796E088006719AA /* VVBaseCommenter.m */; };
2424
D18224DC17956290001A5E8A /* VVDocumenterManager.m in Sources */ = {isa = PBXBuildFile; fileRef = D16917DE17955C8D0036C06B /* VVDocumenterManager.m */; };
2525
D1986F74179A12BD00EA6643 /* CommenterTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D1986F73179A12BD00EA6643 /* CommenterTests.m */; };
26+
D1A23F6E179AD5FB00C3BC43 /* DVTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1A23F6D179AD5FB00C3BC43 /* DVTKit.framework */; };
27+
D1A23F6F179AD60E00C3BC43 /* DVTKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1A23F6D179AD5FB00C3BC43 /* DVTKit.framework */; };
2628
D1AC3B8F1796DB070063A484 /* VVDocumenter.m in Sources */ = {isa = PBXBuildFile; fileRef = D1AC3B8E1796DB070063A484 /* VVDocumenter.m */; };
2729
D1AE501C179A161A0069411A /* VVArgument.m in Sources */ = {isa = PBXBuildFile; fileRef = D11C542B17999D9000D3DE38 /* VVArgument.m */; };
2830
D1C462DC17999C2000EB7B23 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D1C462DB17999C2000EB7B23 /* SenTestingKit.framework */; };
@@ -72,6 +74,8 @@
7274
D16AFCE81796E0D6006719AA /* VVVariableCommenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VVVariableCommenter.m; sourceTree = "<group>"; };
7375
D1986F72179A12BD00EA6643 /* CommenterTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CommenterTests.h; sourceTree = "<group>"; };
7476
D1986F73179A12BD00EA6643 /* CommenterTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CommenterTests.m; sourceTree = "<group>"; };
77+
D1A23F6D179AD5FB00C3BC43 /* DVTKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = DVTKit.framework; path = "VVDocumenter-Xcode/DVTKit.framework"; sourceTree = "<group>"; };
78+
D1A23F70179AD63E00C3BC43 /* XcodePrivate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XcodePrivate.h; sourceTree = "<group>"; };
7579
D1AC3B8D1796DB070063A484 /* VVDocumenter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VVDocumenter.h; sourceTree = "<group>"; };
7680
D1AC3B8E1796DB070063A484 /* VVDocumenter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VVDocumenter.m; sourceTree = "<group>"; };
7781
D1C462DA17999C2000EB7B23 /* VVDocumenterTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = VVDocumenterTests.octest; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -95,13 +99,15 @@
9599
buildActionMask = 2147483647;
96100
files = (
97101
D14380F7179551B900C829CE /* Cocoa.framework in Frameworks */,
102+
D1A23F6E179AD5FB00C3BC43 /* DVTKit.framework in Frameworks */,
98103
);
99104
runOnlyForDeploymentPostprocessing = 0;
100105
};
101106
D1C462D617999C2000EB7B23 /* Frameworks */ = {
102107
isa = PBXFrameworksBuildPhase;
103108
buildActionMask = 2147483647;
104109
files = (
110+
D1A23F6F179AD60E00C3BC43 /* DVTKit.framework in Frameworks */,
105111
D1C462DC17999C2000EB7B23 /* SenTestingKit.framework in Frameworks */,
106112
D1C462DD17999C2000EB7B23 /* Cocoa.framework in Frameworks */,
107113
);
@@ -160,6 +166,7 @@
160166
D14380F5179551B900C829CE /* Frameworks */ = {
161167
isa = PBXGroup;
162168
children = (
169+
D1A23F6D179AD5FB00C3BC43 /* DVTKit.framework */,
163170
D14380F6179551B900C829CE /* Cocoa.framework */,
164171
D1C462DB17999C2000EB7B23 /* SenTestingKit.framework */,
165172
D14380F8179551B900C829CE /* Other Frameworks */,
@@ -187,6 +194,7 @@
187194
D16917DE17955C8D0036C06B /* VVDocumenterManager.m */,
188195
D1AC3B8D1796DB070063A484 /* VVDocumenter.h */,
189196
D1AC3B8E1796DB070063A484 /* VVDocumenter.m */,
197+
D1A23F70179AD63E00C3BC43 /* XcodePrivate.h */,
190198
);
191199
path = "VVDocumenter-Xcode";
192200
sourceTree = "<group>";
@@ -499,6 +507,10 @@
499507
COMBINE_HIDPI_IMAGES = YES;
500508
DEPLOYMENT_LOCATION = YES;
501509
DSTROOT = "${HOME}";
510+
FRAMEWORK_SEARCH_PATHS = (
511+
"$(inherited)",
512+
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
513+
);
502514
GCC_ENABLE_OBJC_GC = supported;
503515
GCC_PRECOMPILE_PREFIX_HEADER = YES;
504516
GCC_PREFIX_HEADER = "VVDocumenter-Xcode/VVDocumenter-Xcode-Prefix.pch";
@@ -516,6 +528,10 @@
516528
COMBINE_HIDPI_IMAGES = YES;
517529
DEPLOYMENT_LOCATION = YES;
518530
DSTROOT = "${HOME}";
531+
FRAMEWORK_SEARCH_PATHS = (
532+
"$(inherited)",
533+
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
534+
);
519535
GCC_ENABLE_OBJC_GC = supported;
520536
GCC_PRECOMPILE_PREFIX_HEADER = YES;
521537
GCC_PREFIX_HEADER = "VVDocumenter-Xcode/VVDocumenter-Xcode-Prefix.pch";
@@ -531,7 +547,10 @@
531547
buildSettings = {
532548
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
533549
COMBINE_HIDPI_IMAGES = YES;
534-
FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
550+
FRAMEWORK_SEARCH_PATHS = (
551+
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
552+
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
553+
);
535554
GCC_PRECOMPILE_PREFIX_HEADER = YES;
536555
GCC_PREFIX_HEADER = "VVDocumenterTests/VVDocumenterTests-Prefix.pch";
537556
INFOPLIST_FILE = "VVDocumenterTests/VVDocumenterTests-Info.plist";
@@ -545,7 +564,10 @@
545564
buildSettings = {
546565
ARCHS = "$(ARCHS_STANDARD_64_BIT)";
547566
COMBINE_HIDPI_IMAGES = YES;
548-
FRAMEWORK_SEARCH_PATHS = "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"";
567+
FRAMEWORK_SEARCH_PATHS = (
568+
"\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"",
569+
"\"$(SRCROOT)/VVDocumenter-Xcode\"",
570+
);
549571
GCC_PRECOMPILE_PREFIX_HEADER = YES;
550572
GCC_PREFIX_HEADER = "VVDocumenterTests/VVDocumenterTests-Prefix.pch";
551573
INFOPLIST_FILE = "VVDocumenterTests/VVDocumenterTests-Info.plist";

VVDocumenter-Xcode/Commenter/VVBaseCommenter.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ -(id) initWithIndentString:(NSString *)indent codeString:(NSString *)code
2323

2424
-(NSString *) startComment
2525
{
26-
return [NSString stringWithFormat:@"%@/**\n%@ *\t@brief\t<#%@#>\n",self.indent,self.indent,@"Description"];
26+
return [NSString stringWithFormat:@"%@/**\n%@ *\t<#%@#>\n",self.indent,self.indent,@"Description"];
2727
}
2828

2929
-(NSString *) argumentsComment
@@ -33,7 +33,7 @@ -(NSString *) argumentsComment
3333
if (result.length == 0) {
3434
[result appendFormat:@"%@ *\n",self.indent];
3535
}
36-
[result appendFormat:@"%@ *\t@param \t%@ \t<#%@ description#>\n",self.indent,arg.name,arg.name];
36+
[result appendFormat:@"%@ *\t@param\t%@\t<#%@ description#>\n",self.indent,arg.name,arg.name];
3737
}
3838
return result;
3939
}
@@ -50,7 +50,7 @@ -(NSString *) returnComment
5050

5151
-(NSString *) endComment
5252
{
53-
return [NSString stringWithFormat:@"%@ */\n",self.indent];
53+
return [NSString stringWithFormat:@"%@ */",self.indent];
5454
}
5555

5656
-(NSString *) document

VVDocumenter-Xcode/Commenter/VVMacroCommenter.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,24 @@
1010

1111
@implementation VVMacroCommenter
1212

13+
-(void) captureReturnType
14+
{
15+
self.hasReturn = YES;
16+
}
17+
18+
-(void) captureParameters
19+
{
20+
if ([self.code matchesPatternRegexPattern:@"\\("]) {
21+
[self parseArguments];
22+
}
23+
}
24+
25+
-(NSString *) document
26+
{
27+
[self captureReturnType];
28+
[self captureParameters];
29+
30+
return [super document];
31+
}
32+
1333
@end

VVDocumenter-Xcode/Commenter/VVMethodCommenter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ -(void) captureParameters
2828
{
2929
NSArray * matchedParams = [self.code stringsByExtractingGroupsUsingRegexPattern:@"\\:\\(([^\\(]+)\\)(\\S+)"];
3030
VVLog(@"matchedParams: %@",matchedParams);
31-
for (int i = 0; i < matchedParams.count - 1; i = i + 2) {
31+
for (int i = 0; i < (int)matchedParams.count - 1; i = i + 2) {
3232
VVArgument *arg = [[VVArgument alloc] init];
3333
arg.type = [matchedParams[i] stringByReplacingRegexPattern:@"[\\s*;.*]" withString:@""];
3434
arg.name = [matchedParams[i + 1] stringByReplacingRegexPattern:@"[\\s*;.*]" withString:@""];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/DVTKit
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Versions/Current/Resources
3.75 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)