Developer Docs Should have Function -> Header Mapping #931
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#931
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When trying to develop against the C++ API, the only way to find out what header I should include is by grepping through the libraries' headers or guessing from other projects using the API (nix-eval-jobs).
Proposal
For each type/function, the Doxygen developer docs should list which header defines it. A good example is the C++ reference: https://en.cppreference.com/w/cpp/algorithm/for_each.html
Some other ideas to consider:
Checklist
FYI that API is highly unstable and you can use it at your own peril of dealing with the changes; the most effective way is to develop against lix HEAD.
As for the other ideas, I think there might be some bugs for those already but they're unlikely to happen without some help from others.
However, are you suggesting there's a wrong doxygen config setting we can fix to actually show the header names? I'm missing some exact context of what's wrong because I think most of our team doesn't use these at all and just reads the headers directly.
@jade yep, the idea is to show which header to include to get access to certain items. I think this is a Doxygen config problem or maybe a Doxygen limitation, we need to look into it.
Yes, if there is a setting that shows which header defines a class/function that would be really helpful!
we could just enable that setting. if you know how to do it, CLs are always welcome!
@blitz wrote in #931 (comment):
Most likely we'll not go looking for one in the medium term as we don't use the doxygen much but if it's important to you please feel free to look at the doxygen docs; you probably know as much or more than us about how it works and we'll gladly take a patch to simply fix the setting.