@@ -31,7 +31,12 @@ -(instancetype) initWithIndentString:(NSString *)indent codeString:(NSString *)c
3131 }
3232 return self;
3333}
34-
34+ /* *
35+ * Adison 14-09-10 14:09:18
36+
37+ *
38+ * @return <#return value description#>
39+ */
3540-(NSString *) paramSymbol {
3641 return self.forSwift ? @" :param:" : @" @param" ;
3742}
@@ -40,20 +45,47 @@ -(NSString *) returnSymbol {
4045 return self.forSwift ? @" :returns:" : @" @return" ;
4146}
4247
48+ /* *
49+ * @Author: Adison, 14-09-11 15:09:09
50+ * <#Description#>
51+ *
52+ * @return <#return value description#>
53+ */
4354-(NSString *) startComment
4455{
4556 NSString *descriptionTag =
4657 [[VVDocumenterSetting defaultSetting ] briefDescription ] && !self.forSwift ? @" @brief " : @" " ;
4758
59+ NSString *authorInfo = @" " ;
60+ if ([[VVDocumenterSetting defaultSetting ] defaultUserInformation ] && !self.forSwift ) {
61+ NSDateFormatter *formatter = [[NSDateFormatter alloc ] init ];
62+ [formatter setDateFormat: @" MM-dd-YYYY HH:MM:ss" ];
63+
64+ NSString *author = @" Adison" ;
65+
66+ NSLog (@" %@ " , author);
67+
68+ authorInfo = [NSString stringWithFormat: @" %@ @Author %@ , %@ \n " ,
69+ self .prefixString,
70+ author,
71+ [formatter stringFromDate: [NSDate date ]]
72+ ];
73+ }
74+
4875 if ([[VVDocumenterSetting defaultSetting ] useHeaderDoc ]) {
4976 return [NSString stringWithFormat: @" %@ /*!\n %@%@ <#Description#>\n " , self .indent, self .prefixString, descriptionTag];
5077 } else if ([[VVDocumenterSetting defaultSetting ] prefixWithSlashes ]) {
5178 return [NSString stringWithFormat: @" %@%@ <#Description#>\n " , self .prefixString, descriptionTag];
5279 } else {
53- return [NSString stringWithFormat: @" %@ /**\n %@%@ <#Description#>\n " , self .indent, self .prefixString, descriptionTag];
80+ return [NSString stringWithFormat: @" %@ /**\n %@%@%@ <#Description#>\n " , self .indent, authorInfo , self .prefixString, descriptionTag];
5481 }
5582}
56-
83+ /* *
84+ * Adison 14-09-10 15:09:10
85+
86+ *
87+ * @return <#return value description#>
88+ */
5789-(NSString *) argumentsComment
5890{
5991 if (self.arguments .count == 0 )
@@ -94,6 +126,12 @@ -(NSString *) returnComment
94126 }
95127}
96128
129+ -(NSString *) defaultUserInformation
130+ {
131+
132+
133+ }
134+
97135-(NSString *) sinceComment
98136{
99137 // It seems no since attribute for swift? Maybe I am wrong.
0 commit comments