Help save net neutrality! Learn more.
Close

#210 False detection of rvalue references

closed-fixed
None
2015-01-03
2013-04-13
zhnmju123
No

Hi,

in the new version 2.03 there are issues with incorrect detection of rvalue references instead of logical-and operator, e.g.

int num;
assert(0 <= num && num <= 15);

is incorrectly formatted to

assert(0 <= num&& num <= 15);

when "--align-pointer=type" is used; note the missing space after "num"

Discussion

  • zhnmju123

    zhnmju123 - 2013-04-13

    Here's another example:

    template <typename T>
    struct IsStlContainer :
    StaticBool<
    impl_2384343::HasMemberType_value_type <T>::value&&
    impl_2384343::HasMemberType_iterator <T>::value&&
    impl_2384343::HasMemberType_const_iterator<T>::value&&
    impl_2384343::HasMember_begin <T>::value&&
    impl_2384343::HasMember_end <T>::value&&
    impl_2384343::HasMember_insert <T>::value> {};

     
  • zhnmju123

    zhnmju123 - 2013-04-13

    One more:
    Int64(T rhs, typename EnableIf<IsSignedInt<T>::value&& sizeof(T) <= sizeof(std::int64_t)>::Type* = nullptr) :

     
  • Jim Pattee

    Jim Pattee - 2013-11-05
    • status: open --> closed-fixed
    • assigned_to: Jim Pattee
    • Group: --> 1.15.3
    • Priority: 5 --> 7
     

Log in to post a comment.