File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 8
8
// See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9
9
//
10
10
11
+ private import _TestingInternals
12
+
11
13
extension Event {
12
14
/// A type which handles ``Event`` instances and outputs representations of
13
15
/// them as human-readable messages.
@@ -356,6 +358,7 @@ extension Event.HumanReadableOutputRecorder {
356
358
357
359
case . runStarted:
358
360
var comments = [ Comment] ( )
361
+ comments. append ( " Clang Major: \( clangMajor ( ) ) " )
359
362
if verbosity > 0 {
360
363
if let swiftStandardLibraryVersion {
361
364
comments. append ( " Swift Standard Library Version: \( swiftStandardLibraryVersion) " )
Original file line number Diff line number Diff line change 14
14
#include < algorithm>
15
15
#include < iterator>
16
16
17
+ int clangMajor (void ) {
18
+ return __clang_major__;
19
+ }
20
+
17
21
const char *swt_getTestingLibraryVersion (void ) {
18
22
#if defined(SWT_TESTING_LIBRARY_VERSION)
19
23
// The current environment explicitly specifies a version string to return.
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ static inline uint64_t swt_getSwiftCompilerVersion(void) {
30
30
#endif
31
31
}
32
32
33
+ SWT_EXTERN int clangMajor (void );
34
+
33
35
/// Get the human-readable version of the testing library.
34
36
///
35
37
/// - Returns: A human-readable string describing the version of the testing
You can’t perform that action at this time.
0 commit comments