style: disable indent for delicate places

This commit is contained in:
Snaipe 2016-09-05 14:01:59 +02:00
parent bae428393a
commit 033bac0c5e
3 changed files with 10 additions and 0 deletions

View file

@ -26,7 +26,9 @@
# include <fstream>
/* *INDENT-OFF* */
namespace criterion { namespace internal {
/* *INDENT-ON* */
template <typename CharT, typename Traits = std::char_traits<CharT>>
class stdio_sync_filebuf : public std::basic_streambuf<CharT, Traits> {
@ -156,6 +158,8 @@ namespace criterion { namespace internal {
return std::fwrite(s, 1, n, file);
}
/* *INDENT-OFF* */
}}
/* *INDENT-ON* */
#endif /* !CRITERION_INTERNAL_STDIO_FILEBUF_HXX_ */

View file

@ -30,7 +30,9 @@
# include "stdio_filebuf.hxx"
/* *INDENT-OFF* */
namespace criterion { namespace internal {
/* *INDENT-ON* */
template <typename CharT, typename Super>
class stream_mixin : public Super {
@ -128,6 +130,8 @@ public:
}
};
/* *INDENT-OFF* */
}}
/* *INDENT-ON* */
#endif /* !CRITERION_INTERNAL_STREAM_HXX_ */

View file

@ -306,6 +306,7 @@ CR_API int criterion_handle_args(int argc, char *argv[],
exit(3);
break;
/* *INDENT-OFF* - Duff devices are often mishandled by formatters */
{
const char *provider;
case 'T': provider = "tap"; goto provider_def;
@ -317,6 +318,7 @@ CR_API int criterion_handle_args(int argc, char *argv[],
quiet = !strcmp(path, "-");
criterion_add_output(provider, path);
} break;
/* *INDENT-ON* */
case 'l': do_list_tests = true; break;
case 'v': do_print_version = true; break;