Document Links
Clickable links from source directives to their resolved target files.
Known limitation: link targets are currently emitted as raw filesystem paths instead of
file:///URIs. Clients that strictly validate DocumentUri may not navigate these links.
Include Directives
#include "..."— link to resolved header file#include <...>— link to resolved system header__has_include(...)— link to checked file#embed "..."— link to embedded resource file__has_embed(...)— link to checked embed file#include_next— link to the resolved next-in-search-path headerMacro-expanded include paths — resolve and link when the path is produced by a macro (clangd#2375)
cpp#define HEADER "config.h" #include HEADER // should link to config.h__has_include_next(...)— link to checked fileShow resolved absolute path as tooltip
#include <vector> // tooltip: /usr/include/c++/14/vector
Module Declarations
-
import module_name;— link to module interface file -
import :partition;— link to partition file -
module module_name;— link to module interface (from implementation unit) -
export import module_name;— link to re-exported module interface
Changelog
| Date | Change | PR |
|---|---|---|
| — | Include directive links (#include, __has_include, #embed) | — |