diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /intern/openvdb/openvdb_util.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'intern/openvdb/openvdb_util.h')
-rw-r--r-- | intern/openvdb/openvdb_util.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/intern/openvdb/openvdb_util.h b/intern/openvdb/openvdb_util.h index 13c2ac610cb..7a19d588068 100644 --- a/intern/openvdb/openvdb_util.h +++ b/intern/openvdb/openvdb_util.h @@ -24,28 +24,28 @@ #include <openvdb/util/CpuTimer.h> #define CATCH_KEYERROR \ - catch (const openvdb::KeyError &e) { \ - std::cerr << e.what() << '\n'; \ - } + catch (const openvdb::KeyError &e) \ + { \ + std::cerr << e.what() << '\n'; \ + } //#define DEBUG_TIME /* A utility class which prints the time elapsed during its lifetime, useful for * e.g. timing the overall execution time of a function */ class ScopeTimer { - std::string m_message; - openvdb::util::CpuTimer m_timer; + std::string m_message; + openvdb::util::CpuTimer m_timer; -public: - ScopeTimer(const std::string &message); - ~ScopeTimer(); + public: + ScopeTimer(const std::string &message); + ~ScopeTimer(); }; #ifdef DEBUG_TIME -# define Timer(x) \ - ScopeTimer prof(x); +# define Timer(x) ScopeTimer prof(x); #else -# define Timer(x) +# define Timer(x) #endif #endif /* __OPENVDB_UTIL_H__ */ |