[llvm-bugs] [Bug 45877] New: [clang/index] inherited constructor reference are not indexed with IndexDataConsumer and IndexASTConsumer

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 11 12:31:46 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45877

            Bug ID: 45877
           Summary: [clang/index] inherited constructor reference are not
                    indexed with IndexDataConsumer and IndexASTConsumer
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: federandink at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

I was testing clang::index::IndexDataConsumer with
clang::index::createIndexingASTConsumer on a clang::ASTFrontendAction.
I was just dumping the indexed decls (names, roles, ...)

But I noticed that the reference to inherited constructor was not indexed,
unlike a call to a "normal" constructor.

see my gist for example:
https://gist.github.com/FederAndInk/8000d182498f5e5a48e648b3d40fa09f
and here a program that uses IndexASTConsumer and dump some info if necessary:
https://gist.github.com/FederAndInk/d7e0867b15fa09758e1abfb95a9e20d4

And finally the output:
https://gist.github.com/FederAndInk/d4d4c90b8a9c3849ee92b9ac02cb037e
Lines 128 and 148 are the call to S::S a "normal" constructor
But no ref and call to the inherited constructor of SD

I also might have missed something or be wrong, please tell me if this is the
case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200511/0d2ab460/attachment.html>


More information about the llvm-bugs mailing list