[clang-tools-extra] r324235 - [clang-tidy] Fix incorrect code indention in the doc.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 05:23:48 PST 2018


Author: hokein
Date: Mon Feb  5 05:23:48 2018
New Revision: 324235

URL: http://llvm.org/viewvc/llvm-project?rev=324235&view=rev
Log:
[clang-tidy] Fix incorrect code indention in the doc.

Modified:
    clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst

Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst?rev=324235&r1=324234&r2=324235&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/objc-property-declaration.rst Mon Feb  5 05:23:48 2018
@@ -11,13 +11,13 @@ For code:
 
 .. code-block:: objc
 
- at property(nonatomic, assign) int LowerCamelCase;
+   @property(nonatomic, assign) int LowerCamelCase;
 
 The fix will be:
 
 .. code-block:: objc
 
- at property(nonatomic, assign) int lowerCamelCase;
+   @property(nonatomic, assign) int lowerCamelCase;
 
 The check will only fix 'CamelCase' to 'camelCase'. In some other cases we will
 only provide warning messages since the property name could be complicated.
@@ -36,7 +36,8 @@ The check will also accept property decl
 lowercase letters followed by a '_' to avoid naming conflict. For example:
 
 .. code-block:: objc
- at property(nonatomic, assign) int abc_lowerCamelCase;
+
+   @property(nonatomic, assign) int abc_lowerCamelCase;
 
 The corresponding style rule: https://developer.apple.com/library/content/qa/qa1908/_index.html
 
@@ -62,9 +63,7 @@ Options
    If set to ``1``, the value in ``Acronyms`` is appended to the
    default list of acronyms:
 
-   ``ACL;API;ARGB;ASCII;BGRA;CMYK;DNS;FPS;FTP;GIF;GPS;HD;HDR;HTML;HTTP;HTTPS;
-HUD;ID;JPG;JS;LAN;LZW;MDNS;MIDI;OS;PDF;PIN;PNG;POI;PSTN;PTR;QA;QOS;RGB;RGBA;
-RGBX;ROM;RPC;RTF;RTL;SDK;SSO;TCP;TIFF;TTS;UI;URI;URL;VC;VOIP;VPN;VR;WAN;XML``.
+   ``ACL;API;ARGB;ASCII;BGRA;CMYK;DNS;FPS;FTP;GIF;GPS;HD;HDR;HTML;HTTP;HTTPS;HUD;ID;JPG;JS;LAN;LZW;MDNS;MIDI;OS;PDF;PIN;PNG;POI;PSTN;PTR;QA;QOS;RGB;RGBA;RGBX;ROM;RPC;RTF;RTL;SDK;SSO;TCP;TIFF;TTS;UI;URI;URL;VC;VOIP;VPN;VR;WAN;XML``.
 
    If set to ``0``, the value in ``Acronyms`` replaces the default list
    of acronyms.




More information about the cfe-commits mailing list