[TextAPI] run clang-format on violating sections, NFC

This commit is contained in:
Cyndy Ishida 2021-04-02 11:42:48 -07:00
parent 1808194590
commit 3a223cd4f3
4 changed files with 35 additions and 36 deletions

View File

@ -290,7 +290,8 @@ public:
/// that is being generated needs to match one of the allowable clients or the
/// linker refuses to link this library.
///
/// \param InstallName The name of the client that is allowed to link this library.
/// \param InstallName The name of the client that is allowed to link this
/// library.
/// \param Target The target triple for which this applies.
void addAllowableClient(StringRef InstallName, const Target &Target);

View File

@ -109,9 +109,7 @@ public:
(Flags == O.Flags);
}
bool operator!=(const Symbol &O) const {
return !(*this == O);
}
bool operator!=(const Symbol &O) const { return !(*this == O); }
private:
StringRef Name;

View File

@ -129,35 +129,35 @@ void InterfaceFile::addDocument(std::shared_ptr<InterfaceFile> &&Document) {
}
bool InterfaceFile::operator==(const InterfaceFile &O) const {
if (Targets != O.Targets)
return false;
if (InstallName != O.InstallName)
return false;
if ((CurrentVersion != O.CurrentVersion) ||
(CompatibilityVersion != O.CompatibilityVersion))
return false;
if (SwiftABIVersion != O.SwiftABIVersion)
return false;
if (IsTwoLevelNamespace != O.IsTwoLevelNamespace)
return false;
if (IsAppExtensionSafe != O.IsAppExtensionSafe)
return false;
if (IsInstallAPI != O.IsInstallAPI)
return false;
if (ParentUmbrellas != O.ParentUmbrellas)
return false;
if (AllowableClients != O.AllowableClients)
return false;
if (ReexportedLibraries != O.ReexportedLibraries)
return false;
if (Symbols != O.Symbols)
return false;
if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(),
O.Documents.end(),
[](const std::shared_ptr<InterfaceFile> LHS,
const std::shared_ptr<InterfaceFile> RHS) {
return *LHS == *RHS;
}))
return false;
return true;
if (Targets != O.Targets)
return false;
if (InstallName != O.InstallName)
return false;
if ((CurrentVersion != O.CurrentVersion) ||
(CompatibilityVersion != O.CompatibilityVersion))
return false;
if (SwiftABIVersion != O.SwiftABIVersion)
return false;
if (IsTwoLevelNamespace != O.IsTwoLevelNamespace)
return false;
if (IsAppExtensionSafe != O.IsAppExtensionSafe)
return false;
if (IsInstallAPI != O.IsInstallAPI)
return false;
if (ParentUmbrellas != O.ParentUmbrellas)
return false;
if (AllowableClients != O.AllowableClients)
return false;
if (ReexportedLibraries != O.ReexportedLibraries)
return false;
if (Symbols != O.Symbols)
return false;
if (!std::equal(Documents.begin(), Documents.end(), O.Documents.begin(),
O.Documents.end(),
[](const std::shared_ptr<InterfaceFile> LHS,
const std::shared_ptr<InterfaceFile> RHS) {
return *LHS == *RHS;
}))
return false;
return true;
}

View File

@ -593,7 +593,7 @@ template <> struct MappingTraits<const InterfaceFile *> {
// platforms, specifically to filter out the i386 slice from
// platform macCatalyst.
TargetList synthesizeTargets(ArchitectureSet Architectures,
const PlatformSet &Platforms) {
const PlatformSet &Platforms) {
TargetList Targets;
for (auto Platform : Platforms) {