emscripten-core / emscripten-core/emscripten

Potential feature request: integrate Clang's --autocomplete

Open
#20,590 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

Apparently, since 2017, Clang has built-in autocomplete support to aid shells: https://blog.llvm.org/2017/09/clang-bash-better-auto-completion-is.html

```bash
> clang --autocomplete=-s
-save-stats Save llvm statistics.
-save-stats= Save llvm statistics.
-save-temps Save intermediate compilation results
-save-temps= Save intermediate compilation results.
-sdl
-sdl-
-serialize-diagnostics Serialize compiler diagnostics to a file
-shared
-shared-libsan Dynamically link the sanitizer runtime
...
```

This currently doesn't work in Emscripten, but could be a helpful addition, especially if it not only forwarded flags but also showed titles for & autocompleted Emscripten's own `-s FOOBAR` settings.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.