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 /source/blender/blenlib/BLI_strict_flags.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 'source/blender/blenlib/BLI_strict_flags.h')
-rw-r--r-- | source/blender/blenlib/BLI_strict_flags.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/source/blender/blenlib/BLI_strict_flags.h b/source/blender/blenlib/BLI_strict_flags.h index 68ae33b068d..cf7888d3c5e 100644 --- a/source/blender/blenlib/BLI_strict_flags.h +++ b/source/blender/blenlib/BLI_strict_flags.h @@ -24,34 +24,34 @@ */ #ifdef __GNUC__ -# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ +# if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 /* gcc4.6+ only */ # pragma GCC diagnostic error "-Wsign-compare" # endif -# if __GNUC__ >= 6 /* gcc6+ only */ +# if __GNUC__ >= 6 /* gcc6+ only */ # pragma GCC diagnostic error "-Wconversion" # endif # if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 - /* gcc4.8+ only (behavior changed to ignore globals)*/ +/* gcc4.8+ only (behavior changed to ignore globals)*/ # pragma GCC diagnostic error "-Wshadow" - /* older gcc changed behavior with ternary */ +/* older gcc changed behavior with ternary */ # pragma GCC diagnostic error "-Wsign-conversion" # endif /* pedantic gives too many issues, developers can define this for own use */ # ifdef WARN_PEDANTIC # pragma GCC diagnostic error "-Wpedantic" -# ifdef __clang__ /* pedantic causes clang error */ +# ifdef __clang__ /* pedantic causes clang error */ # pragma GCC diagnostic ignored "-Wlanguage-extension-token" # endif # endif #endif #ifdef _MSC_VER -# pragma warning(error:4018) /* signed/unsigned mismatch */ -# pragma warning(error:4244) /* conversion from 'type1' to 'type2', possible loss of data */ -# pragma warning(error:4245) /* conversion from 'int' to 'unsigned int' */ -# pragma warning(error:4267) /* conversion from 'size_t' to 'type', possible loss of data */ -# pragma warning(error:4305) /* truncation from 'type1' to 'type2' */ -# pragma warning(error:4389) /* signed/unsigned mismatch */ +# pragma warning(error : 4018) /* signed/unsigned mismatch */ +# pragma warning(error : 4244) /* conversion from 'type1' to 'type2', possible loss of data */ +# pragma warning(error : 4245) /* conversion from 'int' to 'unsigned int' */ +# pragma warning(error : 4267) /* conversion from 'size_t' to 'type', possible loss of data */ +# pragma warning(error : 4305) /* truncation from 'type1' to 'type2' */ +# pragma warning(error : 4389) /* signed/unsigned mismatch */ #endif -#endif /* __BLI_STRICT_FLAGS_H__ */ +#endif /* __BLI_STRICT_FLAGS_H__ */ |