[clangd-dev] Disabling automatic insertion of include

Sam McCall via clangd-dev clangd-dev at lists.llvm.org
Wed Apr 10 00:22:37 PDT 2019


I'm a little hesitant to mention this, as it's a bit of a pandora's box,
but...
If it's hard to get prominent libraries like glib patched, we could have a
lookup table, and pretend we saw such directives...

On Tue, Apr 9, 2019 at 9:07 PM Simon Marchi via clangd-dev <
clangd-dev at lists.llvm.org> wrote:

> On 2019-04-09 3:01 p.m., Eric Liu wrote:
> > Sam has go/phab/D60409 <https://goto.google.com/phab/D60409> ready to
> land. It will provide an option to disable the automatic insertion.
> >
> > Alternatively, clangd respects IWYU private pragma [0] which can be used
> by library owners to specify alternative (public) include headers for index
> symbols in private headers.
> >
> > [0]:
> https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUPragmas.md#iwyu-pragma-private
>
> Awesome!
>
> Didn't know about the IWYU pragmas, thanks for the reference.
>
> Simon
> _______________________________________________
> clangd-dev mailing list
> clangd-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/clangd-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/clangd-dev/attachments/20190410/c0276e96/attachment.html>


More information about the clangd-dev mailing list