Menu

#499 --break-return-type considers explicit an virtual to be a return type

open
nobody
None
2018-04-03
2018-04-03
No

When --break-return-type is used, we get an unwanted newline after explicit and virtual in the test case given here:

class Foo
{
public:
    explicit Foo() {};
    virtual ~Foo() {};
};

In my opinion, the code should remain unchanged.

To reproduce:
./astyle --options=none --break-return-type < test.cpp > test.cpp.new

Discussion


Log in to post a comment.

MongoDB Logo MongoDB