Skip to content

Commit

Permalink
Revert r189704, which removed the guidance about not duplicating doc …
Browse files Browse the repository at this point in the history
…comments.

This is under active discussion.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189730 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Sep 1, 2013
1 parent 6adcd58 commit eecd9b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/CodingStandards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,13 @@ A documentation comment that uses all Doxygen features in a preferred way:
/// \returns true on success.
bool fooBar(bool Baz, StringRef Quux, std::vector<int> &Result);

Don't duplicate the documentation comment in the header file and in the
implementation file. Put the documentation comments for public APIs into the
header file. Documentation comments for private APIs can go to the
implementation file. In any case, implementation files can include additional
comments (not necessarily in Doxygen markup) to explain implementation details
as needed.

Don't duplicate function or class name at the beginning of the comment.
For humans it is obvious which function or class is being documented;
automatic documentation processing tools are smart enough to bind the comment
Expand Down

0 comments on commit eecd9b1

Please sign in to comment.