Issue 58138
Summary Libclang: unclear if visitChildren can be used to visit included entities
Labels new issue
Assignees
Reporter ajrouvoet
    Given a file:

```
#include <stdio.h>

void f() {}
```

Visiting the children of the translation unit after parsing this with `clang_parseTranslationUnit2` will not visit the declarations in `stdio.h`.

As a user of libclang, I would expect there to be some way to instruct `clang_visitChildren` to also visit the included entities. But I cannot find any method that accomplishes this (neither in the docs, nor in the Index.h commentary). I'm not fluent enough in C++ to find out by inspecting the sources for libclang. Does libclang have some way to visit included entities?

Perhaps the docs could be improved to clarify either way.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to