diff --git a/scripts/compareRootFiles.hpp b/scripts/compareRootFiles.hpp
index 5f21b713824168be06a9b33566c3d27f02c13a5b..55332f8dd8a5c38cc3bd0e7fdabd571ce0767acd 100644
--- a/scripts/compareRootFiles.hpp
+++ b/scripts/compareRootFiles.hpp
@@ -486,6 +486,8 @@ private:
                const std::string& branchName,
                const std::string  elemType)
   {
+    // clang-format off
+
     // We support vectors of different types by switching across type (strings)
     #define CREATE_VECTOR__HANDLE_TYPE(type_name)  \
     if(elemType == #type_name) {  \
@@ -515,6 +517,8 @@ private:
 
     // Throw an exception if the vector element type is not recognized
     else throw UnsupportedBranchType();
+
+    // clang-format on
   }
 
   // This helper method provides general string conversion for all supported