These examples are serve as an examples for people wanting to start
using the libc.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I'm not sure that the repeated description of sysroot is necessary, but I'm not sure that it's not. I always worry about duplicated info.
libc/examples/README.md | ||
---|---|---|
4 | "a few" means about three. | |
16 | +.. code-block:: sh ? (Here and below) | |
17 | Newline? | |
17 | What does this comment mean? | |
32 | s,this,the documentation on the overlay, | |
33 | Part of me wishes that the library were called liblvmlibc.a so that the command line argument was -llvmlibc, similar to libiberty. | |
42 | I wouldn't do multiple choice here. Pick one path to show it and stick with that, and I'd stick with whatever the default one is for LLVM is possible. If someone doesn't know what generators are supported and how they work, this isn't the place to learn about them. You might make a note "We test with Makefile and Ninja generators here, but are showing $GENERATOR here for simplicity" | |
81 | s,a ,, | |
81–82 | s,and loading,, |
Address comments.
libc/examples/README.md | ||
---|---|---|
16 | I think the the .. code-block:: syntax is for .rst files? This is a .md file to be rendered like the README.md file here: https://github.com/llvm/llvm-project/tree/main/libc/src/__support/CPP. The idea is that this is a less formal document as opposed to the docs in the docs directory which are of a formal nature. I am calling it "less formal" to imply that this will have much more churn than the docs in the docs directory. | |
17 | Removed it now. | |
33 | Hmm ... the name is now hard coded in a few places upstream and downstream! | |
42 | I have removed all discussion about the two types of generators. |
I'm marking this as accepted - only the language annotation on the code blocks remains, but I think you'll have to just try something and see how the github MD interpreter copes with it. Thanks!
libc/examples/README.md | ||
---|---|---|
16 | Ah! I hadn't realized that this isn't an rst file. So, looking at: https://github.github.com/gfm/#info-string and https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#code it looks like it's possible to do: ,,,bash (where those are backticks rather than commas, but this box is interpreting the MD if I use actual backticks) However, I have no idea how to test this before committing it =) I'm also not sure if you have to remove the "$> " as well. |
libc/examples/README.md | ||
---|---|---|
16 | I added bash as you suggested and removed the $>: https://github.com/llvm/llvm-project/tree/main/libc/examples |
"a few" means about three.
"few" means very little, and is often used in a negative context.