mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Doxygen: Enable autobrief feature and update coding standards.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237417 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
fa93d0e1c6
commit
1cf942cb4f
2 files changed
+17
-16
No files matched your search
+15
-14
@@ -247,8 +247,8 @@ tree. The standard header looks like this:
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
///
|
///
|
||||||
/// \file
|
/// \file
|
||||||
/// \brief This file contains the declaration of the Instruction class, which is
|
/// This file contains the declaration of the Instruction class, which is the
|
||||||
/// the base class for all of the VM instructions.
|
/// base class for all of the VM instructions.
|
||||||
///
|
///
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@@ -268,10 +268,10 @@ 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.
|
code can be distributed under and should not be modified in any way.
|
||||||
|
|
||||||
The main body is a ``doxygen`` comment (identified by the ``///`` comment
|
The main body is a ``doxygen`` comment (identified by the ``///`` comment
|
||||||
marker instead of the usual ``//``) describing the purpose of the file. It
|
marker instead of the usual ``//``) describing the purpose of the file. The
|
||||||
should have a ``\brief`` command that describes the file in one or two
|
first sentence or a passage beginning with ``\brief`` is used as an abstract.
|
||||||
sentences. Any additional information should be separated by a blank line. If
|
Any additional information should be separated by a blank line. If an
|
||||||
an algorithm is being implemented or something tricky is going on, a reference
|
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
|
to the paper where it is published should be included, as well as any notes or
|
||||||
*gotchas* in the code to watch out for.
|
*gotchas* in the code to watch out for.
|
||||||
|
|
||||||
@@ -320,10 +320,11 @@ Doxygen Use in Documentation Comments
|
|||||||
Use the ``\file`` command to turn the standard file header into a file-level
|
Use the ``\file`` command to turn the standard file header into a file-level
|
||||||
comment.
|
comment.
|
||||||
|
|
||||||
Include descriptive ``\brief`` paragraphs for all public interfaces (public
|
Include descriptive paragraphs for all public interfaces (public classes,
|
||||||
classes, member and non-member functions). Explain API use and purpose in
|
member and non-member functions). Don't just restate the information that can
|
||||||
``\brief`` paragraphs, don't just restate the information that can be inferred
|
be inferred from the API name. The first sentence or a paragraph beginning
|
||||||
from the API name. Put detailed discussion into separate paragraphs.
|
with ``\brief`` is used as an abstract. Put detailed discussion into separate
|
||||||
|
paragraphs.
|
||||||
|
|
||||||
To refer to parameter names inside a paragraph, use the ``\p name`` command.
|
To refer to parameter names inside a paragraph, use the ``\p name`` command.
|
||||||
Don't use the ``\arg name`` command since it starts a new paragraph that
|
Don't use the ``\arg name`` command since it starts a new paragraph that
|
||||||
@@ -343,8 +344,8 @@ A minimal documentation comment:
|
|||||||
|
|
||||||
.. code-block:: c++
|
.. code-block:: c++
|
||||||
|
|
||||||
/// \brief Does foo and bar.
|
/// Sets the xyzzy property to \p Baz.
|
||||||
void fooBar(bool Baz);
|
void setXyzzy(bool Baz);
|
||||||
|
|
||||||
A documentation comment that uses all Doxygen features in a preferred way:
|
A documentation comment that uses all Doxygen features in a preferred way:
|
||||||
|
|
||||||
@@ -401,10 +402,10 @@ Correct:
|
|||||||
|
|
||||||
// In Something.h:
|
// In Something.h:
|
||||||
|
|
||||||
/// \brief An abstraction for some complicated thing.
|
/// An abstraction for some complicated thing.
|
||||||
class Something {
|
class Something {
|
||||||
public:
|
public:
|
||||||
/// \brief Does foo and bar.
|
/// Does foo and bar.
|
||||||
void fooBar();
|
void fooBar();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -169,7 +169,7 @@ SHORT_NAMES = NO
|
|||||||
# description.)
|
# description.)
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
JAVADOC_AUTOBRIEF = NO
|
JAVADOC_AUTOBRIEF = YES
|
||||||
|
|
||||||
# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
|
# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first
|
||||||
# line (until the first dot) of a Qt-style comment as the brief description. If
|
# line (until the first dot) of a Qt-style comment as the brief description. If
|
||||||
@@ -177,7 +177,7 @@ JAVADOC_AUTOBRIEF = NO
|
|||||||
# requiring an explicit \brief command for a brief description.)
|
# requiring an explicit \brief command for a brief description.)
|
||||||
# The default value is: NO.
|
# The default value is: NO.
|
||||||
|
|
||||||
QT_AUTOBRIEF = NO
|
QT_AUTOBRIEF = YES
|
||||||
|
|
||||||
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
|
# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a
|
||||||
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
|
# multi-line C++ special comment block (i.e. a block of //! or /// comments) as
|
||||||
|
|||||||
Reference in new issue
Block a user