mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
Clarify the statement on using #if 0 ... #endif in CodingStandards.
The statement on using #if 0 ... #endif is not very clear (for people like me :-)). This patch clarifies it a bit to avoid confusion. Differential Revision: https://reviews.llvm.org/D23404 llvm-svn: 278932
This commit is contained in:
parent
6496b5b3c9
commit
584f261fc5
@ -309,8 +309,10 @@ useful to use C style (``/* */``) comments however:
|
||||
#. When writing a source file that is used by a tool that only accepts C style
|
||||
comments.
|
||||
|
||||
To comment out a large block of code, use ``#if 0`` and ``#endif``. These nest
|
||||
properly and are better behaved in general than C style comments.
|
||||
Commenting out large blocks of code is discouraged, but if you really have to do
|
||||
this (for documentation purposes or as a suggestion for debug printing), use
|
||||
``#if 0`` and ``#endif``. These nest properly and are better behaved in general
|
||||
than C style comments.
|
||||
|
||||
Doxygen Use in Documentation Comments
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
Loading…
Reference in New Issue
Block a user