Skip to content

Commit 43f938e

Browse files
committed
LTOVisibility.rst: fix up syntax in example
Summary: Pretty self-evident. This example was missing an lparen. Added it, and fixed up the ASCII art. Patch by Nick Black <[email protected]> Reviewers: pcc Reviewed By: pcc Subscribers: tejohnson, mehdi_amini, inglorion, hiraditya, steven_wu, dexonsmith, cfe-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D70765
1 parent 2823e91 commit 43f938e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/docs/LTOVisibility.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ cases involving two linkage units, ``main`` and ``dso.so``.
8383
| | }; | | | struct E : D { |
8484
| | struct [[clang::lto_visibility_public]] D { | | | virtual void g() { ... } |
8585
| | virtual void g() = 0; | | | }; |
86-
| | }; | | | __attribute__(visibility("default"))) D *mkE() { |
86+
| | }; | | | __attribute__((visibility("default"))) D *mkE() { |
8787
| | | | | return new E; |
8888
| +-----------------------------------------------------+ | | } |
8989
| | | |

0 commit comments

Comments
 (0)