summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/visibility-pragmas.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/gcc~13/visibility-pragmas.html')
-rw-r--r--devdocs/gcc~13/visibility-pragmas.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/devdocs/gcc~13/visibility-pragmas.html b/devdocs/gcc~13/visibility-pragmas.html
new file mode 100644
index 00000000..1b65c7d6
--- /dev/null
+++ b/devdocs/gcc~13/visibility-pragmas.html
@@ -0,0 +1,8 @@
+<div class="subsection-level-extent" id="Visibility-Pragmas"> <div class="nav-panel"> <p> Next: <a href="push_002fpop-macro-pragmas" accesskey="n" rel="next">Push/Pop Macro Pragmas</a>, Previous: <a href="diagnostic-pragmas" accesskey="p" rel="prev">Diagnostic Pragmas</a>, Up: <a href="pragmas" accesskey="u" rel="up">Pragmas Accepted by GCC</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="subsection" id="Visibility-Pragmas-1"><span>6.62.13 Visibility Pragmas<a class="copiable-link" href="#Visibility-Pragmas-1"> ¶</a></span></h1> <dl class="table"> <dt>
+<span><code class="code">#pragma GCC visibility push(<var class="var">visibility</var>)</code><a class="copiable-link" href="#index-pragma_002c-visibility"> ¶</a></span>
+</dt> <dt><code class="code">#pragma GCC visibility pop</code></dt> <dd> <p>This pragma allows the user to set the visibility for multiple declarations without having to give each a visibility attribute (see <a class="pxref" href="function-attributes">Declaring Attributes of Functions</a>). </p> <p>In C++, ‘<samp class="samp">#pragma GCC visibility</samp>’ affects only namespace-scope declarations. Class members and template specializations are not affected; if you want to override the visibility for a particular member or instantiation, you must use an attribute. </p> </dd> </dl> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
+ <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Visibility-Pragmas.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Visibility-Pragmas.html</a>
+ </p>
+</div>