[PATCH] D70765: LTOVisibility.rst: fix up syntax in example

Nick Black via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 21:54:56 PST 2019


dankamongmen created this revision.
dankamongmen added a project: LLVM.
Herald added subscribers: cfe-commits, dexonsmith, steven_wu, hiraditya, inglorion, mehdi_amini.
Herald added a project: clang.
dankamongmen added a reviewer: pcc.

Pretty self-evident. This example was missing an lparen. Added it, and fixed up the ASCII art.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70765

Files:
  clang/docs/LTOVisibility.rst


Index: clang/docs/LTOVisibility.rst
===================================================================
--- clang/docs/LTOVisibility.rst
+++ clang/docs/LTOVisibility.rst
@@ -83,7 +83,7 @@
     |  |  };                                                 |  |  |  struct E : D {                                    |
     |  |  struct [[clang::lto_visibility_public]] D {        |  |  |    virtual void g() { ... }                        |
     |  |    virtual void g() = 0;                            |  |  |  };                                                |
-    |  |  };                                                 |  |  |  __attribute__(visibility("default"))) D *mkE() {  |
+    |  |  };                                                 |  |  |  __attribute__((visibility("default"))) D *mkE() { |
     |  |                                                     |  |  |    return new E;                                   |
     |  +-----------------------------------------------------+  |  |  }                                                 |
     |                                                           |  |                                                    |


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70765.231179.patch
Type: text/x-patch
Size: 1172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191127/de9a087f/attachment.bin>


More information about the cfe-commits mailing list