Add check if user's clang version supports --autocomplete or not.
If not, we just autocomplete files.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang/utils/bash-autocomplete.sh | ||
---|---|---|
28 ↗ | (On Diff #103881) | It is probably a bit better if you mention that it falls back to the default filename completion if --autocomplete is not available. How about this: If clang is old that it does not support --autocomplete, fall back to the filename completion. |
31 ↗ | (On Diff #103881) | If it is the same as just return, please remove 0. |
33 ↗ | (On Diff #103881) | nit: it is a bit easier to read if you insert a newline here to separate code blocks. |