LoginSignup
3
2

More than 5 years have passed since last update.

Clangのコード補完機能とシステムインクルードファイルの問題

Posted at

Clangのコマンドclangを使うとコード補完をさせることができます。
しかし僕の環境では、多くのブログで紹介されているclang -cc1 ...で始まるコマンドラインを使うと、標準ヘッダファイルが見つからないと言われて失敗していました。
この問題を解決したので、記事を書きました。

Clangのコード補完機能とシステムインクルードファイルの問題

解決方法について簡単に述べると、clang -cc1 -code-completion-at=...ではなくclang -Xclang -code-completion-at=...を使えばよい、ということになります。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2