Skip to content

Commit dc93e7c

Browse files
authored
Merge pull request #5580 from nkcsgexi/digester-simplify
2 parents 7729c40 + 327759c commit dc93e7c

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

test/api-digester/Outputs/Cake.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11

2-
==================================================== Removed Decls ====================================================
2+
/* Removed Decls */
33

4-
==================================================== Moved Decls ====================================================
4+
/* Moved Decls */
55

6-
==================================================== Renamed Decls ====================================================
6+
/* Renamed Decls */
77

8-
==================================================== Type Changes ====================================================
8+
/* Type Changes */
99
Constructor S1.init(_:) has 1st parameter type change from Int to Double
1010
Func C1.foo2(_:) has 1st parameter type change from Int to () -> ()
1111

12-
==================================================== Decl Attribute changes ====================================================
12+
/* Decl Attribute changes */
1313
Var C1.CIIns1 changes from weak to strong
1414
Var C1.CIIns2 changes from strong to weak
1515
Func C1.foo1() is now not static
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
==================================================== Removed Decls ====================================================
1+
/* Removed declarations */
32
Protocol BidirectionalIndexable has been removed (deprecated)
43
Protocol ExpressibleByStringInterpolation has been removed (deprecated)
54
Protocol Indexable has been removed (deprecated)
@@ -8,15 +7,11 @@ Protocol MutableIndexable has been removed (deprecated)
87
Protocol RandomAccessIndexable has been removed (deprecated)
98
Protocol RangeReplaceableIndexable has been removed (deprecated)
109

11-
==================================================== Moved Decls ====================================================
10+
/* Moved declarations */
1211
// rdar://28456614 Swift 3 breaking change: static function 'abs' removed from Double/Float/Float80/CGFloat
1312
Func Double.abs(_:) has been moved to Func abs(_:)
1413
Func Float.abs(_:) has been moved to Func abs(_:)
1514
Func Float80.abs(_:) has been moved to Func abs(_:)
1615

17-
==================================================== Renamed Decls ====================================================
18-
19-
==================================================== Type Changes ====================================================
16+
/* Function type change */
2017
Func UnsafePointer.withMemoryRebound(to:capacity:_:) has 3rd parameter type change from (UnsafeMutablePointer<T>) throws -> Result to (UnsafePointer<T>) throws -> Result
21-
22-
==================================================== Decl Attribute changes ====================================================

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2700,9 +2700,9 @@ class DiagnosisEmitter : public SDKNodeVisitor {
27002700
struct DiagBag {
27012701
std::vector<T> Diags;
27022702
~DiagBag() {
2703-
llvm::outs() << "\n==================================================== ";
2703+
llvm::outs() << "\n/* ";
27042704
T::theme(llvm::outs());
2705-
llvm::outs() << " ====================================================\n";
2705+
llvm::outs() << " */\n";
27062706
removeRedundantAndSort(Diags);
27072707
std::for_each(Diags.begin(), Diags.end(), [](T &Diag) {
27082708
Diag.output();

0 commit comments

Comments
 (0)