summaryrefslogtreecommitdiff
path: root/docs/CodingStandards.rst
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-10-01 19:59:21 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-10-01 19:59:21 +0000
commit06d9981d27acfc9d3474cfeb115e6d7da7e670d8 (patch)
tree6d0b4aedf5d2445d4ec1a0b4512775fda1d07cd7 /docs/CodingStandards.rst
parent92080529a05e223303a75d83008f804fd518aba7 (diff)
downloadllvm-06d9981d27acfc9d3474cfeb115e6d7da7e670d8.tar.gz
llvm-06d9981d27acfc9d3474cfeb115e6d7da7e670d8.tar.bz2
llvm-06d9981d27acfc9d3474cfeb115e6d7da7e670d8.tar.xz
[Docs] Update File Headers section to cover doxygen style file level docs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.rst')
-rw-r--r--docs/CodingStandards.rst19
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/CodingStandards.rst b/docs/CodingStandards.rst
index 71ddc59c5e..de50e6eeaf 100644
--- a/docs/CodingStandards.rst
+++ b/docs/CodingStandards.rst
@@ -79,10 +79,11 @@ tree. The standard header looks like this:
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
- //
- // This file contains the declaration of the Instruction class, which is the
- // base class for all of the VM instructions.
- //
+ ///
+ /// \file
+ /// \brief This file contains the declaration of the Instruction class, which is
+ /// the base class for all of the VM instructions.
+ ///
//===----------------------------------------------------------------------===//
A few things to note about this particular format: The "``-*- C++ -*-``" string
@@ -100,10 +101,12 @@ The next section in the file is a concise note that defines the license that the
file is released under. This makes it perfectly clear what terms the source
code can be distributed under and should not be modified in any way.
-The main body of the description does not have to be very long in most cases.
-Here it's only two lines. If an algorithm is being implemented or something
-tricky is going on, a reference to the paper where it is published should be
-included, as well as any notes or *gotchas* in the code to watch out for.
+The main body is a ``doxygen`` comment describing the purpose of the file. It
+should have a ``\brief`` command that describes the file in one or two
+sentences. Any additional information should be separated by a blank line. If
+an algorithm is being implemented or something tricky is going on, a reference
+to the paper where it is published should be included, as well as any notes or
+*gotchas* in the code to watch out for.
Class overviews
"""""""""""""""