diff options
author | Chris Lattner <sabre@nondot.org> | 2013-09-01 15:48:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-09-01 15:48:08 +0000 |
commit | 4fe2746c5ffe5226446d5632a367fb4a30d456c2 (patch) | |
tree | 822141841008d7e9f2c6162cf41a96acaddcfc5e /llvm/docs | |
parent | 4def4b088f4fef33f632b28b2cf7af1a7bd25c99 (diff) | |
download | bcm5719-llvm-4fe2746c5ffe5226446d5632a367fb4a30d456c2.tar.gz bcm5719-llvm-4fe2746c5ffe5226446d5632a367fb4a30d456c2.zip |
Revert r189704, which removed the guidance about not duplicating doc comments.
This is under active discussion.
llvm-svn: 189730
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/CodingStandards.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/CodingStandards.rst b/llvm/docs/CodingStandards.rst index 3bf62514a9d..9418680edc7 100644 --- a/llvm/docs/CodingStandards.rst +++ b/llvm/docs/CodingStandards.rst @@ -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 |