Skip to content

Commit 3aef500

Browse files
committed
formatting fixes and missed copyright date updates
1 parent 61f6b0e commit 3aef500

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

tools/swift-inspect/Sources/SwiftInspectLinux/ElfFile.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class ElfFile {
7777
guard shdr.sh_type == SHT_SYMTAB || shdr.sh_type == SHT_DYNSYM else { continue }
7878

7979
let sectionData: Data = try self.readSection(shdr)
80-
let symTable: [Elf64_Sym] = sectionData.withUnsafeBytes { Array($0.bindMemory(to: Elf64_Sym.self)) }
80+
let symTable: [Elf64_Sym] = sectionData.withUnsafeBytes {
81+
Array($0.bindMemory(to: Elf64_Sym.self))
82+
}
8183

8284
guard shdr.sh_entsize == MemoryLayout<Elf64_Sym>.size else {
8385
throw ELFError.malformedFile(self.filePath, "invalid Elf64_Shdr.sh_entsize")

tools/swift-inspect/Sources/SwiftInspectLinux/LinkMap.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class LinkMap {
121121
}
122122

123123
// loads the auxiliary vector for a 64-bit process
124-
static func loadAuxVec(for pid: pid_t) throws -> [Int32 : UInt64] {
124+
static func loadAuxVec(for pid: pid_t) throws -> [Int32: UInt64] {
125125
guard let data = ProcFS.loadFile(for: pid, "auxv") else {
126126
throw LinkMapError.failedLoadingAuxVec(for: pid)
127127
}

tools/swift-inspect/Sources/SwiftInspectLinux/SystemHeaders/auxvec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

tools/swift-inspect/Sources/SwiftInspectLinux/SystemHeaders/elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

0 commit comments

Comments
 (0)