[haiku-development] Re: Checker bot for Gerrit

  • From: saloni goyal <salonig1212@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 3 Apr 2021 02:01:43 +0530

Hello,
While working on the bug. I have one doubt. Empty function in one line
should be a correct format or not? Because the inline members inside a
class are discouraged and in order to maintain the original code style
I have found a solution of setting
Style.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_Empty;
which lead us to have original code as shown in commit but the empty
functions like destructors will be converted to a single line function
as shown below

InputMouse::~InputMouse() {}

What do you think about that approach, will this be acceptable?

-- 
Saloni
https://github.com/saloniig
https://hackace2.wordpress.com/

Other related posts: