Skip to content

Commit cb61722

Browse files
cyndyishidamemfrob
authored andcommitted
[TextAPI] run clang-format on violating sections, NFC
1 parent 2a54ead commit cb61722

File tree

4 files changed

+35
-36
lines changed

4 files changed

+35
-36
lines changed

llvm/include/llvm/TextAPI/MachO/InterfaceFile.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ class InterfaceFile {
290290
/// that is being generated needs to match one of the allowable clients or the
291291
/// linker refuses to link this library.
292292
///
293-
/// \param InstallName The name of the client that is allowed to link this library.
293+
/// \param InstallName The name of the client that is allowed to link this
294+
/// library.
294295
/// \param Target The target triple for which this applies.
295296
void addAllowableClient(StringRef InstallName, const Target &Target);
296297

llvm/include/llvm/TextAPI/MachO/Symbol.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ class Symbol {
109109
(Flags == O.Flags);
110110
}
111111

112-
bool operator!=(const Symbol &O) const {
113-
return !(*this == O);
114-
}
112+
bool operator!=(const Symbol &O) const { return !(*this == O); }
115113

116114
private:
117115
StringRef Name;

llvm/lib/TextAPI/MachO/InterfaceFile.cpp

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -129,35 +129,35 @@ void InterfaceFile::addDocument(std::shared_ptr<InterfaceFile> &&Document) {
129129
}
130130

131131
bool InterfaceFile::operator==(const InterfaceFile &O) const {
132-
if (Targets != O.Targets)
133-
return false;
134-
if (InstallName != O.InstallName)
135-
return false;
136-
if ((CurrentVersion != O.CurrentVersion) ||
137-
(CompatibilityVersion != O.CompatibilityVersion))
138-
return false;
139-
if (SwiftABIVersion != O.SwiftABIVersion)
140-
return false;
141-
if (IsTwoLevelNamespace != O.IsTwoLevelNamespace)
142-
return false;
143-
if (IsAppExtensionSafe != O.IsAppExtensionSafe)
144-
return false;
145-
if (IsInstallAPI != O.IsInstallAPI)
146-
return false;
147-
if (ParentUmbrellas != O.ParentUmbrellas)
148-
return false;
149-
if (AllowableClients != O.AllowableClients)
150-
return false;
151-
if (ReexportedLibraries != O.ReexportedLibraries)
152-
return false;
153-
if (Symbols != O.Symbols)
154-
return false;
155-
if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(),
156-
O.Documents.end(),
157-
[](const std::shared_ptr<InterfaceFile> LHS,
158-
const std::shared_ptr<InterfaceFile> RHS) {
159-
return *LHS == *RHS;
160-
}))
161-
return false;
162-
return true;
132+
if (Targets != O.Targets)
133+
return false;
134+
if (InstallName != O.InstallName)
135+
return false;
136+
if ((CurrentVersion != O.CurrentVersion) ||
137+
(CompatibilityVersion != O.CompatibilityVersion))
138+
return false;
139+
if (SwiftABIVersion != O.SwiftABIVersion)
140+
return false;
141+
if (IsTwoLevelNamespace != O.IsTwoLevelNamespace)
142+
return false;
143+
if (IsAppExtensionSafe != O.IsAppExtensionSafe)
144+
return false;
145+
if (IsInstallAPI != O.IsInstallAPI)
146+
return false;
147+
if (ParentUmbrellas != O.ParentUmbrellas)
148+
return false;
149+
if (AllowableClients != O.AllowableClients)
150+
return false;
151+
if (ReexportedLibraries != O.ReexportedLibraries)
152+
return false;
153+
if (Symbols != O.Symbols)
154+
return false;
155+
if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(),
156+
O.Documents.end(),
157+
[](const std::shared_ptr<InterfaceFile> LHS,
158+
const std::shared_ptr<InterfaceFile> RHS) {
159+
return *LHS == *RHS;
160+
}))
161+
return false;
162+
return true;
163163
}

llvm/lib/TextAPI/MachO/TextStub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ template <> struct MappingTraits<const InterfaceFile *> {
593593
// platforms, specifically to filter out the i386 slice from
594594
// platform macCatalyst.
595595
TargetList synthesizeTargets(ArchitectureSet Architectures,
596-
const PlatformSet &Platforms) {
596+
const PlatformSet &Platforms) {
597597
TargetList Targets;
598598

599599
for (auto Platform : Platforms) {

0 commit comments

Comments
 (0)