Графік комітів
12 Коміти
Автор SHA1 Повідомлення Дата
Yohann CATHERINEтаyohannlog 304674d0fe feat(cpp): report functions declared but never defined (#7540)
A C or C++ function declared but never defined only failed at link time. A new inspection, Function declared but never defined (C/C++, weak warning), reports a prototype when clangd's go to definition finds only the declaration itself. Pure virtual, defaulted and deleted functions, operators, macro calls and Qt signals are left out. Quick fixes: Create Definition in the header's source file, and Implement Inline.

Co-authored-by: yohannlog <[email protected]>
2026-12-03 00:01:25 +08:00
Yohann CATHERINEтаyohannlog aa003541a3 feat(cpp): grey out inactive preprocessor code, show macro expansions, create library projects (#7539)
Three C / C++ gaps. Code left out by an #if / #ifdef branch is greyed out from clangd's inactive-code semantic tokens in C, C++ and Objective-C(++). View > Show Macro Expansion shows what the macro at the caret expands to, from clangd's hover. New Project > C/C++ has a project type: Executable, or a static or shared Library with a public include/ folder.

The template engine dropped only a bare LF after a block tag, so on Windows, where Git checks the generators out with CRLF, every {{#if}} line left a blank line in the generated files. It now drops a CRLF too.

Co-authored-by: yohannlog <[email protected]>
2026-12-03 00:00:14 +08:00
Yohann CATHERINEтаyohannlog d2699c430e feat(cpp): GoogleTest, Catch2, doctest and CTest results in the test tree (#7538)
C++ test executables ran as plain applications and CTest as one block of console output, so no test appeared in the test tree. CMake detection now marks an executable whose sources include GoogleTest, Catch2 v3 or doctest as a test configuration, and CTest as one too. Their output fills the test tree with each failure's message and location. GoogleTest, Catch2 and doctest test declarations get gutter icons that run one test through the framework's filter.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 23:59:15 +08:00
Yohann CATHERINEтаyohannlog f404a33e7a feat(cpp): clangd reads the active CMake profile's compilation database (#7551)
In a CMake project with profiles or presets, clangd searched for compile_commands.json in each file's parent folders and their build/, so it could read another profile's or a stale database: test sources showed missing GoogleTest headers although the active profile compiles them. clangd now starts with --compile-commands-dir set to the active profile's build directory once it has a compile_commands.json. The window restarts this project's clangd when another profile becomes active, or when the IDE configures the active profile's directory for the first time. That first configure runs as a build task, so the restart follows the configurations reloading without the needs-configure mark instead of a run session's exit. An explicit --compile-commands-dir, a root compile_commands.json and a .clangd naming a CompilationDatabase are left alone.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 23:55:03 +08:00
Yohann CATHERINEтаyohannlog 0303a513cd feat(cmake): Reload CMake Project and Reset Cache and Reload (#7537)
Adds Reload CMake Project, which configures the active profile again and refreshes its targets and compile_commands.json, and Reset Cache and Reload CMake Project, which first deletes the build directory's CMakeCache.txt and CMakeFiles through the new cmake_reset_cache command and keeps the build type the cache held. A failed delete is reported and nothing is configured. Both are in a Build > CMake submenu shown while the project has CMake configurations, in Find Action and in the title-bar CMake profile switcher; the configure output shows in the Run window.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 22:05:29 +08:00
Yohann CATHERINEтаyohannlog 17dd723a3d feat(cpp): generate constructors, accessors and operators in C++ classes (#7536)
Generate (Cmd+N / Alt+Insert) in a C++ class or struct now offers Constructor, Getter, Setter, Getter and Setter, Equality Operators and Stream Output Operator next to clangd's own generate actions. Fields are picked in the member chooser and the members are written at the end of the class in a public section; accessors with no field left to write are listed greyed out with the reason. Stream output adds #include <ostream> when no stream header is included. Headers opened as C get the entries when they hold C++ code, and clangd's "Declare implicit copy/move members" now counts as a generate action.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 21:59:57 +08:00
Yohann CATHERINEтаyohannlog 8dc1fecc0e feat(templates): C and C++ live templates (#7535)
Adds live templates for C, C++ and Objective-C(++): a C set (main, fori, if/ife, while, do, sw, st, tds, en, inc/incl, incg include guard named after the file, ifdef/ifndef, pf) and a C++ set (iter, itit, ritit, cl, cls, nsp, tmpl, lam, try, cout/cerr/cin, uptr/sptr, sc, GoogleTest test, Catch2/doctest tc). Documented on the C/C++ language page.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 21:40:11 +08:00
Yohann CATHERINEтаyohannlog 5debc5297b feat(cmake): CLion-style profiles, presets and toolchains (#7262)
CMake gets CLion-style profiles (build type, generator, build directory, CMake options, environment), CMake presets as profiles, and toolchains (compilers, build tool, debugger, environment script). Only the active profile is detected; target ids have their own namespace, configurations from the older per-profile ids are migrated with their suppressions and before-launch references, the toolchain's build program is passed only to a compatible generator, and a profile switch refreshes the derived executable and build arguments while keeping user edits.

Co-authored-by: yohannlog <[email protected]>
2026-12-02 15:35:21 +08:00
LU XIANGRUIтаwildcatDownstairs 09a44bebbe feat(lsp): serve C-family files of Xcode projects through sourcekit-lsp (#7023)
In an Xcode project plain clangd finds no compile flags, so headers on the target's search paths and the generated <Module>-Swift.h were not found. C, C++, Objective-C and Objective-C++ now list sourcekit-lsp before clangd with require-root-marker on buildServer.json and replaces clangd: with an Xcode BSP config sourcekit-lsp serves them with the build server's flags; without one, or without sourcekit-lsp, clangd serves as before.

Closes #7022

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-30 21:32:00 +08:00
LU XIANGRUIтаwildcatDownstairs 7237a37104 feat(language): bundle the Objective-C tree-sitter grammar for outline, folding and symbols (#7027)
Bundles tree-sitter-objc (MIT) with an outline query for Objective-C and Objective-C++: @interface/@implementation/@protocol blocks, categories, methods named by selector, properties, instance variables, C declarations and #pragma mark labels, so the Structure view, folding and the symbol index work for .m and .mm files. The built-in syntax-error diagnostics skip both languages, since the grammar misreads Apple's macros and C++.

Closes #7026

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-30 21:29:33 +08:00
LU XIANGRUIтаwildcatDownstairs 093cf6fdf8 feat(cpp): switch between a header and its source file (#6928)
A Switch Header/Source action (F10; Alt+O in the VS Code keymaps) opens the counterpart of the current C, C++, Objective-C or Objective-C++ file. It asks clangd with textDocument/switchSourceHeader (new lsp_switch_source_header, cancellable), so headers in include/ and sources in src/ are found; without clangd or an answer it opens a project file with the same stem and a counterpart extension, as Related Symbol does.

Closes #6927

Co-authored-by: wildcatDownstairs <[email protected]>

Co-authored-by: wildcatDownstairs <[email protected]>
2026-11-30 12:00:32 +08:00
l0ng-ai dbdf610ffa docs: add the Mintlify documentation site (#2528)
Closes #1543
2026-11-10 21:06:30 +08:00