[cfe-users] tool to combine c++ header and source files

2016-01-26 Thread Ryan Lewis via cfe-users
Hi,

I have a source project with 467 c++ headers and 578 c++ source files, with
around 500 thousand lines of code (according to sloccount).

I would like to produce 467 header files where I replace the ';' character
with the body of text {  } containing the source implementation from
the c++ file.

I'm wondering if such a script exists, perhaps making using of a clang api.
If not, would someone be willing to point me at what parts of the clang
python api might be useful for achieving this? Would the lexer be the right
place to start?

Best,
-rhl
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


Re: [cfe-users] cfe-users Digest, Vol 62, Issue 11

2018-03-22 Thread Ryan Lewis via cfe-users
unsubscribe

On Thu, Mar 22, 2018 at 3:02 PM via cfe-users 
wrote:

> Send cfe-users mailing list submissions to
> cfe-users@lists.llvm.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
> or, via email, send a message with subject or body 'help' to
> cfe-users-requ...@lists.llvm.org
>
> You can reach the person managing the list at
> cfe-users-ow...@lists.llvm.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cfe-users digest..."
>
>
> Today's Topics:
>
>1. tooling clang 7.0 option parser extra argument
>   (Steven Varga via cfe-users)
>
>
> --
>
> Message: 1
> Date: Thu, 22 Mar 2018 00:37:35 -0400
> From: Steven Varga via cfe-users 
> To: cfe-users@lists.llvm.org
> Subject: [cfe-users] tooling clang 7.0 option parser extra argument
> Message-ID:
> <
> cafkvq9ms1xcycw+3gbkwjxuhez5naqai-fjrdbd8bcff5dt...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi,
>
> I was wondering it is possible to parse extra arguments with option parser?
>
> best,
> steven
>
> static llvm::cl::OptionCategory MyToolCategory("h5cpp options");
> ...
> int main(int argc, const char **argv) {
>
> CommonOptionsParser OptionsParser(argc, argv, MyToolCategory);
> ClangTool Tool(OptionsParser.getCompilations(),
> OptionsParser.getSourcePathList());
> 
> }
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://lists.llvm.org/pipermail/cfe-users/attachments/20180322/135eb202/attachment-0001.html
> >
>
> --
>
> Subject: Digest Footer
>
> ___
> cfe-users mailing list
> cfe-users@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
>
> --
>
> End of cfe-users Digest, Vol 62, Issue 11
> *
>
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users