Debugging: mention clang command line

Fangrui Song 2019-08-06 18:55:33 -07:00
parent d8b0fc0ac0
commit dc1b46fe07

@ -8,6 +8,13 @@ Enable [logging](Customization#--log-filefile----log-file-appendfile) and
`-log-file=/tmp/ccls.log -v=1` `-log-file=/tmp/ccls.log -v=1`
To figure out the compiler command line used to parse your source files:
* Find the line below `indexer* ... parse`. This is used be the indexer.
* Find the line below `preamble ... create session for`. This is used for completion/diagnostics.
If there is some diagnostics problem, change the first argument to `clang`, append `-fsyntax-only` and run the command in a shell to reproduce.
### stderr ### stderr
You can find stderr output in: You can find stderr output in: