summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGBlocks.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-05-08 23:09:44 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-05-08 23:09:44 +0000
commit41487f37d3174dcf827761d7c95a7e9d4ffdf56d (patch)
tree5c978052c7b513295991b7198613e925cc56cdeb /lib/CodeGen/CGBlocks.cpp
parentef907b69ea10dbb630e0c5c1edf4fb8ce12593cb (diff)
downloadclang-41487f37d3174dcf827761d7c95a7e9d4ffdf56d.tar.gz
clang-41487f37d3174dcf827761d7c95a7e9d4ffdf56d.tar.bz2
clang-41487f37d3174dcf827761d7c95a7e9d4ffdf56d.tar.xz
Comment: use \code...\endcode for code examples
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r--lib/CodeGen/CGBlocks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp
index 411cc0e305..8cc4891cc7 100644
--- a/lib/CodeGen/CGBlocks.cpp
+++ b/lib/CodeGen/CGBlocks.cpp
@@ -63,14 +63,16 @@ static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM,
/// buildBlockDescriptor is accessed from 5th field of the Block_literal
/// meta-data and contains stationary information about the block literal.
/// Its definition will have 4 (or optinally 6) words.
+/// \code
/// struct Block_descriptor {
/// unsigned long reserved;
/// unsigned long size; // size of Block_literal metadata in bytes.
/// void *copy_func_helper_decl; // optional copy helper.
/// void *destroy_func_decl; // optioanl destructor helper.
-/// void *block_method_encoding_address;// \@encode for block literal signature.
+/// void *block_method_encoding_address; // @encode for block literal signature.
/// void *block_layout_info; // encoding of captured block variables.
/// };
+/// \endcode
static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM,
const CGBlockInfo &blockInfo) {
ASTContext &C = CGM.getContext();