<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body 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>
<br>
<div class="moz-cite-prefix">On 5/9/2016 8:30 AM, Eric Liu via
cfe-dev wrote:<br>
</div>
<blockquote
cite="mid:CAKFdadCGMY-U8=sE5qOHokWOeCUYdENAiR28z0a6AswChARykA@mail.gmail.com"
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 moz-do-not-send="true"
href="http://reviews.llvm.org/D19482">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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" 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>
</body>
</html>