From 65dfc5d19e80b398e8780c42bc2f951e88059b43 Mon Sep 17 00:00:00 2001 From: John Freeman Date: Wed, 22 Apr 2020 17:20:07 -0500 Subject: [PATCH] Prepare code for formatting - Add missing `#include` in `ripple/core/JobTypeInfo.h` - Protect version string from clang-format in `ripple/protocol/impl/BuildInfo.cpp`. `Builds/CMake/RippledVersion.cmake` searches for this line by pattern. --- src/ripple/core/JobTypeInfo.h | 2 ++ src/ripple/protocol/impl/BuildInfo.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/ripple/core/JobTypeInfo.h b/src/ripple/core/JobTypeInfo.h index 96718915bf..389dcf0098 100644 --- a/src/ripple/core/JobTypeInfo.h +++ b/src/ripple/core/JobTypeInfo.h @@ -20,6 +20,8 @@ #ifndef RIPPLE_CORE_JOBTYPEINFO_H_INCLUDED #define RIPPLE_CORE_JOBTYPEINFO_H_INCLUDED +#include + namespace ripple { diff --git a/src/ripple/protocol/impl/BuildInfo.cpp b/src/ripple/protocol/impl/BuildInfo.cpp index 882e493bd6..89b8b1968d 100644 --- a/src/ripple/protocol/impl/BuildInfo.cpp +++ b/src/ripple/protocol/impl/BuildInfo.cpp @@ -31,7 +31,9 @@ namespace BuildInfo { // The build version number. You must edit this for each release // and follow the format described at http://semver.org/ //------------------------------------------------------------------------------ +// clang-format off char const* const versionString = "1.6.0-b2" +// clang-format on #if defined(DEBUG) || defined(SANITIZER) "+"