summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commit6c96ba2dc0c382fcb8822c13dadab53bd1dcf821 (patch)
tree5cd1dfe51d70d84e461dec090a2748f9d0440b16 /clang/lib/CodeGen
parent352e81ffb5697bcdd6807d73eac9992cd342ed86 (diff)
downloadbcm5719-llvm-6c96ba2dc0c382fcb8822c13dadab53bd1dcf821.tar.gz
bcm5719-llvm-6c96ba2dc0c382fcb8822c13dadab53bd1dcf821.zip
Comment: use \code...\endcode for code examples
llvm-svn: 181481
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBlocks.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp
index 411cc0e3059..8cc4891cc7f 100644
--- a/clang/lib/CodeGen/CGBlocks.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud