Menu

#595 Unwanted indentation after >>>

closed-fixed
None
2025-03-26
2025-03-21
Zenju
No

AStyle built from git 2025-03-21 converts this

template <class S, class T, typename = std::enable_if_t<isStringLike<S>>> bool contains(const S& str, const T& term);

int test = 1;

into

template <class S, class T, typename = std::enable_if_t<isStringLike<S>>> bool contains(const S& str, const T& term);

          int test = 1;

Note the unwanted spaces before the "int".

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

  • André Simon

    André Simon - 2025-03-21
    • status: open --> open-accepted
    • assigned_to: André Simon
     
  • André Simon

    André Simon - 2025-03-21

    I pushed a fix for this one (Java operators confusion)

     
  • Zenju

    Zenju - 2025-03-22

    Perfect, the issue has been fixed!

     
  • André Simon

    André Simon - 2025-03-26
    • status: open-accepted --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB