It reaches 80 cols after the V in OVERRIDE.
Here are some ways I can think of:
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled
) OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled
) OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event,
bool canceled) OVERRIDE;
One could imagine this applying to other keywords like const, or the
pure virtual specifier = 0.
virtual void OnMouseReleased(const views::MouseEvent& event,
bool canceled) const;
not:
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
const;
I think we should treat OVERRIDE the same way.
-Scott
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
>
What is the approved style for 80 column breaking of lines like this?
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled) OVERRIDE;
It reaches 80 cols after the V in OVERRIDE.
Here are some ways I can think of:
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled
) OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled
) OVERRIDE;
virtual void OnMouseReleased(const views::MouseEvent& event,
bool canceled) OVERRIDE;
--
OK, cool. Thanks, Scott.
The style guide says that for const it should be on the same line as
the last parameter, eg:
bool canceled) const;
virtual void OnMouseReleased(const views::MouseEvent& event,
not:
const;
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled)
I think we should treat OVERRIDE the same way.