Closed kellda closed 2 months ago
Selecting items to generate based on the header where they're defined would be a convenient alternative to selecting them by name.
Clang's API allows getting the CXSourceLocation for definitions, which then allows to get the source file for it.
CXSourceLocation
@rustbot label enhancement
Isn't --allowlist-file just this?
--allowlist-file
Yes, it's exactly that. I don't know why I didn't found it, sorry for that.
Selecting items to generate based on the header where they're defined would be a convenient alternative to selecting them by name.
Clang's API allows getting the
CXSourceLocation
for definitions, which then allows to get the source file for it.@rustbot label enhancement