[clangd-dev] Disabling automatic insertion of include

Ilya Biryukov via clangd-dev clangd-dev at lists.llvm.org
Wed Apr 10 01:23:51 PDT 2019


FWIW, having a mapping for libraries like glib seems useful even if they do
get patched to add IWYU pragmas.
There always a rather large amount of older versions floating around...

Sam McCall via clangd-dev <clangd-dev at lists.llvm.org> schrieb am Mi., 10.
Apr. 2019, 09:22:

> 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
>>
> _______________________________________________
> 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/980daf78/attachment.html>


More information about the clangd-dev mailing list