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

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 2 11:45:31 PDT 2021


Author: Cyndy Ishida
Date: 2021-04-02T11:44:33-07:00
New Revision: 3a223cd4f3adfebf6db7d7e680ff2da73d3ef5fb

URL: https://github.com/llvm/llvm-project/commit/3a223cd4f3adfebf6db7d7e680ff2da73d3ef5fb
DIFF: https://github.com/llvm/llvm-project/commit/3a223cd4f3adfebf6db7d7e680ff2da73d3ef5fb.diff

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

Added: 
    

Modified: 
    llvm/include/llvm/TextAPI/MachO/InterfaceFile.h
    llvm/include/llvm/TextAPI/MachO/Symbol.h
    llvm/lib/TextAPI/MachO/InterfaceFile.cpp
    llvm/lib/TextAPI/MachO/TextStub.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h b/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h
index 3aaf6e23b6336..9dc1204691410 100644
--- a/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h
+++ b/llvm/include/llvm/TextAPI/MachO/InterfaceFile.h
@@ -290,7 +290,8 @@ class InterfaceFile {
   /// 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);
 

diff  --git a/llvm/include/llvm/TextAPI/MachO/Symbol.h b/llvm/include/llvm/TextAPI/MachO/Symbol.h
index 839945f10fa69..4f7fb2d483a5e 100644
--- a/llvm/include/llvm/TextAPI/MachO/Symbol.h
+++ b/llvm/include/llvm/TextAPI/MachO/Symbol.h
@@ -109,9 +109,7 @@ class Symbol {
            (Flags == O.Flags);
   }
 
-  bool operator!=(const Symbol &O) const {
-    return !(*this == O);
-  }
+  bool operator!=(const Symbol &O) const { return !(*this == O); }
 
 private:
   StringRef Name;

diff  --git a/llvm/lib/TextAPI/MachO/InterfaceFile.cpp b/llvm/lib/TextAPI/MachO/InterfaceFile.cpp
index 9e13a61fdf5fe..ad6f1d3db0573 100644
--- a/llvm/lib/TextAPI/MachO/InterfaceFile.cpp
+++ b/llvm/lib/TextAPI/MachO/InterfaceFile.cpp
@@ -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;
 }

diff  --git a/llvm/lib/TextAPI/MachO/TextStub.cpp b/llvm/lib/TextAPI/MachO/TextStub.cpp
index 1d6352b2e126d..68c0d6b25006d 100644
--- a/llvm/lib/TextAPI/MachO/TextStub.cpp
+++ b/llvm/lib/TextAPI/MachO/TextStub.cpp
@@ -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) {


        


More information about the llvm-commits mailing list