Fixed formatting
This commit is contained in:
@@ -79,8 +79,7 @@ std::string generator::name(relationship_t r) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void generator::generate(
|
void generator::generate(const package &p, std::ostream &ostr) const
|
||||||
const package &p, std::ostream &ostr) const
|
|
||||||
{
|
{
|
||||||
const auto uns = m_config.using_namespace;
|
const auto uns = m_config.using_namespace;
|
||||||
|
|
||||||
|
|||||||
@@ -149,9 +149,9 @@ bool starts_with(const std::vector<T> &col, const std::vector<T> &prefix)
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void remove_prefix(std::vector<T> &col, const std::vector<T> &prefix)
|
void remove_prefix(std::vector<T> &col, const std::vector<T> &prefix)
|
||||||
{
|
{
|
||||||
if(!starts_with(col, prefix))
|
if (!starts_with(col, prefix))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
col = std::vector<T>(col.begin()+prefix.size(), col.end());
|
col = std::vector<T>(col.begin() + prefix.size(), col.end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -166,7 +166,8 @@ unsigned int rngSeed();
|
|||||||
// Therefore, `CATCH_INTERNAL_IGNORE_BUT_WARN` is not implemented.
|
// Therefore, `CATCH_INTERNAL_IGNORE_BUT_WARN` is not implemented.
|
||||||
#if !defined(__ibmxl__) && !defined(__CUDACC__)
|
#if !defined(__ibmxl__) && !defined(__CUDACC__)
|
||||||
#define CATCH_INTERNAL_IGNORE_BUT_WARN(...) \
|
#define CATCH_INTERNAL_IGNORE_BUT_WARN(...) \
|
||||||
(void)__builtin_constant_p(__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg, \
|
(void)__builtin_constant_p( \
|
||||||
|
__VA_ARGS__) /* NOLINT(cppcoreguidelines-pro-type-vararg, \
|
||||||
hicpp-vararg) */
|
hicpp-vararg) */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -4653,10 +4654,12 @@ auto makeMatchExpr(ArgT const &arg, MatcherT const &matcher,
|
|||||||
do { \
|
do { \
|
||||||
Catch::AssertionHandler catchAssertionHandler(macroName##_catch_sr, \
|
Catch::AssertionHandler catchAssertionHandler(macroName##_catch_sr, \
|
||||||
CATCH_INTERNAL_LINEINFO, \
|
CATCH_INTERNAL_LINEINFO, \
|
||||||
CATCH_INTERNAL_STRINGIFY(__VA_ARGS__) "," \
|
CATCH_INTERNAL_STRINGIFY( \
|
||||||
|
__VA_ARGS__) "," \
|
||||||
" " CATCH_INTERNAL_STRINGIFY( \
|
" " CATCH_INTERNAL_STRINGIFY( \
|
||||||
exceptionType) "," \
|
exceptionType) "," \
|
||||||
" " CATCH_INTERNAL_STRINGIFY(matcher), \
|
" " CATCH_INTERNAL_STRINGIFY( \
|
||||||
|
matcher), \
|
||||||
resultDisposition); \
|
resultDisposition); \
|
||||||
if (catchAssertionHandler.allowThrows()) \
|
if (catchAssertionHandler.allowThrows()) \
|
||||||
try { \
|
try { \
|
||||||
|
|||||||
Reference in New Issue
Block a user