This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Coding style question


Dear gcc hackers,

It was being pointed out to me that you might prefer in patches the
style (A)

  bool
  function (args)
  {
    /* ... */
    return (<condition>);
  }

over (B)

  bool
  function (args)
  {
    /* ... */
    if (<condition>)
      return true;
    else
      return false;
  }

I looked in the coding style guides, but could not find this particular
case covered.

Thank you in advance,
Andi.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]