Skip to content
Snippets Groups Projects
Commit 91043a85 authored by Hadrien Benjamin Grasland's avatar Hadrien Benjamin Grasland
Browse files

Don't let clang-format mess with macros, it makes too much of a mess

parent b5b9f7f8
No related branches found
No related tags found
No related merge requests found
...@@ -486,6 +486,8 @@ private: ...@@ -486,6 +486,8 @@ private:
const std::string& branchName, const std::string& branchName,
const std::string elemType) const std::string elemType)
{ {
// clang-format off
// We support vectors of different types by switching across type (strings) // We support vectors of different types by switching across type (strings)
#define CREATE_VECTOR__HANDLE_TYPE(type_name) \ #define CREATE_VECTOR__HANDLE_TYPE(type_name) \
if(elemType == #type_name) { \ if(elemType == #type_name) { \
...@@ -515,6 +517,8 @@ private: ...@@ -515,6 +517,8 @@ private:
// Throw an exception if the vector element type is not recognized // Throw an exception if the vector element type is not recognized
else throw UnsupportedBranchType(); else throw UnsupportedBranchType();
// clang-format on
} }
// This helper method provides general string conversion for all supported // This helper method provides general string conversion for all supported
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment