Menu ▾ ▴

#617 Regressions in 3.6.27

open
nobody
None
3 days ago
3 days ago
Zenju
No

These are regression in 3.6.27 compared to 3.6.26.
It's possible there are associated tickets for each issue, but maybe it's easier to get an overview here:

  1. Result after formatting: The "ThreadLocalValues" is not indented anymore
class Test
{
    // In a particular thread, maps a ThreadLocal object to its value.
    typedef std::map<const ThreadLocalBase*,
                     std::shared_ptr<ThreadLocalValueHolderBase> >
    ThreadLocalValues;
}
  1. Result after formatting: The line beginnings are not aligned correctly
#define OPT_V_ENUM                                                      \
    OPT_V__FIRST = 2000,                                                \
                   OPT_V_POLICY, OPT_V_PURPOSE, OPT_V_VERIFY_NAME, OPT_V_VERIFY_DEPTH, \
                   OPT_V_ATTIME, OPT_V_VERIFY_HOSTNAME, OPT_V_VERIFY_EMAIL,            \
                   OPT_V_VERIFY_IP, OPT_V_IGNORE_CRITICAL, OPT_V_ISSUER_CHECKS,        \
                   OPT_V_CRL_CHECK, OPT_V_CRL_CHECK_ALL, OPT_V_POLICY_CHECK,           \
                   OPT_V_EXPLICIT_POLICY, OPT_V_INHIBIT_ANY, OPT_V_INHIBIT_MAP,        \
                   OPT_V_X509_STRICT, OPT_V_EXTENDED_CRL, OPT_V_USE_DELTAS,            \
                   OPT_V_POLICY_PRINT, OPT_V_CHECK_SS_SIG, OPT_V_TRUSTED_FIRST,        \
                   OPT_V_SUITEB_128_ONLY, OPT_V_SUITEB_128, OPT_V_SUITEB_192,          \
                   OPT_V_PARTIAL_CHAIN, OPT_V_NO_ALT_CHAINS, OPT_V_NO_CHECK_TIME,      \
                   OPT_V_VERIFY_AUTH_LEVEL, OPT_V_ALLOW_PROXY_CERTS,                   \
                   OPT_V__LAST

#define RGB2YUV_32 \
    __m128i r1, r2, b1, b2, g1, g2; \
    __m128i r_16, g_16, b_16; \
    __m128i y1_16, y2_16, u1_16, u2_16, v1_16, v2_16, y, u1, u2, v1, v2, u1_tmp, u2_tmp, v1_tmp, v2_tmp; \
    __m128i rgb1 = LOAD_SI128((const __m128i*)(rgb_ptr1)), \
                   rgb2 = LOAD_SI128((const __m128i*)(rgb_ptr1+16)), \
                          rgb3 = LOAD_SI128((const __m128i*)(rgb_ptr1+32)), \
                                 rgb4 = LOAD_SI128((const __m128i*)(rgb_ptr2)), \
                                        rgb5 = LOAD_SI128((const __m128i*)(rgb_ptr2+16)), \
                                               rgb6 = LOAD_SI128((const __m128i*)(rgb_ptr2+32));
  1. Result after formatting: The line starting with "__void_t" is aligned strangely
#if ! __cpp_lib_concepts
template<typename _Iterator>
struct __iterator_traits<_Iterator,
                             __void_t<typename _Iterator::iterator_category,
                             typename _Iterator::value_type,
                             typename _Iterator::difference_type,
                             typename _Iterator::pointer,
                             typename _Iterator::reference>>
{
    typedef typename _Iterator::iterator_category iterator_category;
    typedef typename _Iterator::value_type        value_type;
    typedef typename _Iterator::difference_type   difference_type;
    typedef typename _Iterator::pointer           pointer;
    typedef typename _Iterator::reference         reference;
};
#endif // ! concepts
  1. Result after formatting: "(void)arg;" is aligned incorrectly. Granted, the missing ";" after macro "UNITTEST_BEGIN_SIMPLE" is an issue, but this used to work up to 3.6.26:
static CURLcode test_lib3595(const char* arg)
{
    UNITTEST_BEGIN_SIMPLE

#if !defined(CURL_DISABLE_MIME)
    /* Free deep structure */
    curl_mime_free(root);
    curl_global_cleanup();
#else
        (void)arg;
#endif

    UNITTEST_END_SIMPLE
}

All examples were using:

--style=allman
--suffix=none
--keep-one-line-blocks
--align-pointer=type
--min-conditional-indent=0
--max-continuation-indent=80
--indent-switches
--indent-col1-comments
--indent-preproc-block
--indent-preproc-define
--pad-header
--pad-comma
--formatted
--lineend=linux
--indent-preproc-block
--convert-tabs
--preserve-ws

Discussion


Log in to post a comment.