IntelliSenseMode: gcc-x64 vs clang-x64?

Viewed 817

According to the documentation of vscode for c++, the intelliSenseMode has two different modes:

  • gcc-x64

  • clang-x64

I just wonder:

What are the differences between the two modes?

1 Answers

This option tells intelliSense which compiler to use. So either gcc or clang. From the official docs of VS Code (here):

intelliSenseMode: The IntelliSense mode to use that maps to an architecture-specific variant of MSVC, gcc, or Clang. If not set or if set to ${default}, the extension will choose the default for that platform.

Platform defaults:

  • Windows: msvc-x64
  • Linux: gcc-x64
  • macOS: clang-x64

For a comparison between the two compilers, see e.g. here.

Related