]> granicus.if.org Git - clang/commitdiff
Escape more @ signs in Doxygen comments.
authorJordan Rose <jordan_rose@apple.com>
Wed, 3 Apr 2013 01:39:23 +0000 (01:39 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 3 Apr 2013 01:39:23 +0000 (01:39 +0000)
Doxygen treats "@command" the same as "\command" in a doc comment, so
whenever we talk about Objective-C things like "@interface" we have to
make sure to escape them.

Let's try to keep Clang -Wdocumentation-clean!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178603 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/CommentCommandTraits.h
include/clang/AST/DeclBase.h
include/clang/AST/ExprObjC.h
lib/Sema/SemaDecl.cpp

index 9eb99d506b45f42dfcac63bff782cfba774a8c12..d1f5209d1eef79ea469ee409a92ef5c362f22df3 100644 (file)
@@ -105,10 +105,10 @@ struct CommandInfo {
   unsigned IsFunctionDeclarationCommand : 1;
 
   /// \brief True if block command is further describing a container API; such
-  /// as @coclass, @classdesign, etc.
+  /// as \@coclass, \@classdesign, etc.
   unsigned IsRecordLikeDetailCommand : 1;
   
-  /// \brief True if block command is a container API; such as @interface.
+  /// \brief True if block command is a container API; such as \@interface.
   unsigned IsRecordLikeDeclarationCommand : 1;
   
   /// \brief True if this command is unknown.  This \c CommandInfo object was
index 3248d23f42dfbc63973ca268fb52042cd5fd4f2a..852bb9ab0400fbd971476f6c22dcb898ee9a8eac 100644 (file)
@@ -135,7 +135,7 @@ public:
     /// or member ends up here.
     IDNS_Ordinary            = 0x0020,
 
-    /// Objective C @protocol.
+    /// Objective C \@protocol.
     IDNS_ObjCProtocol        = 0x0040,
 
     /// This declaration is a friend function.  A friend function
index 5211171541b5884ebb2e19ca6d4ba59d8cc23f5d..dfd45279dd1521192951ce9df2ebebfdad620d13 100644 (file)
@@ -417,9 +417,13 @@ public:
   child_range children() { return child_range(); }
 };
 
-/// ObjCProtocolExpr used for protocol expression in Objective-C.  This is used
-/// as: @protocol(foo), as in:
-///   obj conformsToProtocol:@protocol(foo)]
+/// ObjCProtocolExpr used for protocol expression in Objective-C.
+///
+/// This is used as: \@protocol(foo), as in:
+/// \code
+///   [obj conformsToProtocol:@protocol(foo)]
+/// \endcode
+///
 /// The return type is "Protocol*".
 class ObjCProtocolExpr : public Expr {
   ObjCProtocolDecl *TheProtocol;
index beae217e0198f9954ee47925a7564958165e4b86..16887da457d3ebec6a56b592247a26fd3350fa5e 100644 (file)
@@ -10807,8 +10807,8 @@ Decl *Sema::ActOnIvar(Scope *S,
 }
 
 /// ActOnLastBitfield - This routine handles synthesized bitfields rules for 
-/// class and class extensions. For every class @interface and class 
-/// extension @interface, if the last ivar is a bitfield of any type, 
+/// class and class extensions. For every class \@interface and class 
+/// extension \@interface, if the last ivar is a bitfield of any type, 
 /// then add an implicit `char :0` ivar to the end of that interface.
 void Sema::ActOnLastBitfield(SourceLocation DeclLoc,
                              SmallVectorImpl<Decl *> &AllIvarDecls) {