<div dir="ltr">Hi Ben, t<span style="line-height:1.5">hanks for the reply! We'd like to keep the symbol information synchronized with the standard, so synopses from standard would be preferred.</span></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 9, 2016 at 3:34 PM Craig, Ben via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<p>I don't know if this is 'correct' enough, but the libcxx headers
that correspond to standards defined headers usually (maybe
always?) have a comment at the top that is basically the standard
synopsis. There are some things in the header comment that aren't
in the standard synopsis, such as '// C++14' and '// C++17'
comments. But maybe it's good enough for what you are looking
for?<br>
</p></div><div bgcolor="#FFFFFF" text="#000000">
<br>
<div>On 5/9/2016 8:30 AM, Eric Liu via
cfe-dev wrote:<br>
</div>
</div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite">
<div dir="ltr">Hi Richard,
<div><br>
</div>
<div><span style="line-height:1.5"><i><b>Background</b></i>: I
am writing a tool to retrieve all symbols and its
information from C++ standard library for #include_fixer (a
tool that can automatically find the right #include headers
for unidentified symbols in C++ code). My current solution
is running <a href="http://reviews.llvm.org/D19482" target="_blank">FindAllSymbol</a>
tool across all C++ standard headers in the system include
path, e.g. header files under </span><i>/usr/include/c++/4.8.4/</i>
directory in my own machine. <span style="line-height:1.5">However,
this solution can be problematic since there can be multiple
headers that export the same symbol. For example, "vector"
can be #include'd via either <algorithm> or
<queue> besides <vector> itself. </span></div>
<div><span style="line-height:1.5"><br>
</span></div>
<div><span style="line-height:1.5">As an alternative, we are
thinking about parsing header synopses from C++ standard.
So, we are wondering if there are existing syntax-correct
header synopses in the form of C++ header files somewhere
that we can use. If not, Manual(@klimek) suggests that maybe
we could have the header synopses as C++ header files and
have the standard draft includes them so that syntax can be
easily checked, and we can conveniently parse the synopses
too.</span></div>
<div><span style="line-height:1.5"><br>
</span></div>
<div><span style="line-height:1.5">Regards,</span></div>
<div><span style="line-height:1.5">Eric</span></div>
</div>
<br>
<fieldset></fieldset>
<br>
</blockquote></div><div bgcolor="#FFFFFF" text="#000000"><blockquote type="cite"><pre>_______________________________________________
cfe-dev mailing list
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
</pre>
</div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>