[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] LLVM Project Blog: A path forward for an LLVM toolchain on Windows
|
Hallo Sergey,
I just sat down and wanted to create a plugin for clang-format. It seems
pretty easy indeed. However, I can't get clang-format to write to stdout. Can
you give me a hint on how you solved it?
What are you doing about the -style option? Are you translating the generic
options into a config file for clang-format, or are you just ignoring it?
thx Michi
On Monday 16 Sep 2013 11:35:10 Sergey Prigogin wrote:
> On Mon, Sep 16, 2013 at 11:22 AM, Nathan Ridge
<zeratul976@xxxxxxxxxxx>wrote:
> > > I have a tiny plugin (sorry not open source) that
> >
> > implements org.eclipse.cdt.core.CodeFormatter extension point and calls
> > clang-format with -output-replacements-xml flag. The XML produced by
> > clang-format is parsed, converted into an array of TextEdits, and returned
> > from the format method.
> >
> > That sounds quite useful! Do you think you (or your Google overlords :) )
> > would consider open-sourcing that at some point?
>
> It's not easily open-sourceable due to dependency on couple proprietary
> classes. The code is less that 200 lines, so anybody should be able to
> write such a plugin in a day.
>
> > Regards,
> > Nate
>
> -sergey
>
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev