JetBrains Fleet 1.32 Help

Clangd engine

The C++ language engine in Fleet is based on clangd.

Clangd configuration files

To tune the clangd engine for your needs, use clangd configuration files.

  • For shared project-level settings, use .clangd. These files can contain, for example, compiler flags for both the whole project and for specific files.

  • For user-level settings, use config.yaml files in OS-specific directories.

Example of using .clangd: enabling CUDA support

In order to enable full support for CUDA files, make the following adjustments in the CompileFlags section of your .clangd:

  • For Windows

    CompileFlags: Remove: - -forward-unknown-to-host-compiler - --generate-code* - -rdc=* - -Xcompiler* Add: - --cuda-path=C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.0
  • For Linux (tested on Ubuntu)

    CompileFlags: Remove: - -forward-unknown-to-host-compiler - --generate-code* - -rdc=* - -Xcompiler*

Clangd settings in the IDE

Apart from configuration files, you can also use two IDE settings to configure clangd:

  1. Go to Fleet | Settings (⌘ ,).

  2. Switch to the Global tab.

  3. In the left-hand pane, select Tools | Clangd.

    The clangd settings
    • Enable hidden tweaks - turn on the features provided by the --hidden-features flag.

    • clangd arguments - use this field for additional clangd flags.

Clangd indexer

The Clangd-based indexer helps improve the performance and quality of search operations.

  1. Go to Fleet | Settings (⌘ ,).

  2. Switch to your project's tab.

  3. In the left-hand pane, select Tools | Clangd indexer.

    The clangd indexer settings
    • Use JetBrains clangd for indexing - enable the clangd indexer.

    • Use dynamic clangd index - turn on to improve search speed in the recently opened files.

Last modified: 22 March 2024