From 43f938eddc8a5c8e12c116ca5f31df5a6fead24e Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 8 Jan 2020 09:58:18 -0800 Subject: [PATCH] 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 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 --- clang/docs/LTOVisibility.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/docs/LTOVisibility.rst b/clang/docs/LTOVisibility.rst index ed15d8d..3a60f54 100644 --- a/clang/docs/LTOVisibility.rst +++ b/clang/docs/LTOVisibility.rst @@ -83,7 +83,7 @@ cases involving two linkage units, ``main`` and ``dso.so``. | | }; | | | 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; | | +-----------------------------------------------------+ | | } | | | | | -- 2.7.4