]> granicus.if.org Git - clang/commitdiff
Avoid the -Wdocumentation-unknown-command warning in Clang's C API docs
authorAlex Lorenz <arphaman@gmail.com>
Thu, 6 Apr 2017 14:03:25 +0000 (14:03 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 6 Apr 2017 14:03:25 +0000 (14:03 +0000)
rdar://20441985

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

include/clang-c/Index.h

index e33424138d96c1351cd3b6043441d9450d02ba3b..1ac2b7f802c29111d0b99729e89c9989816022d7 100644 (file)
@@ -4034,8 +4034,8 @@ CINDEX_LINKAGE unsigned clang_Cursor_getObjCDeclQualifiers(CXCursor C);
 
 /**
  * \brief Given a cursor that represents an Objective-C method or property
- * declaration, return non-zero if the declaration was affected by "@optional".
- * Returns zero if the cursor is not such a declaration or it is "@required".
+ * declaration, return non-zero if the declaration was affected by "\@optional".
+ * Returns zero if the cursor is not such a declaration or it is "\@required".
  */
 CINDEX_LINKAGE unsigned clang_Cursor_isObjCOptional(CXCursor C);
 
@@ -4711,7 +4711,7 @@ enum CXCompletionChunkKind {
    */
   CXCompletionChunk_HorizontalSpace,
   /**
-   * Vertical space ('\n'), after which it is generally a good idea to
+   * Vertical space ('\\n'), after which it is generally a good idea to
    * perform indentation.
    */
   CXCompletionChunk_VerticalSpace