vscode-cpptools icon indicating copy to clipboard operation
vscode-cpptools copied to clipboard

Add support for C23/C++26 #embed

Open Stovent opened this issue 7 months ago • 4 comments

Feature Request

I couldn't find any issue regarding that before so I apology if it's a duplicate.

C23/C++26 added support for #embed preprocessor macro, and GCC 15/Clang 19 implemented the feature so it's now usable. But Intellisense doesn't recognize the directive.

If implementing the complete parsing and semantics of it is complicated to implement, is it possible to simple recognize #embed as a valid directive please?

Image

Stovent avatar Jun 15 '25 16:06 Stovent

It's not implemented by our IntelliSense parser yet. You can track the progress in the #embed row and EDG column at https://en.cppreference.com/w/cpp/compiler_support.html

sean-mcmanus avatar Jun 16 '25 11:06 sean-mcmanus

Wow, EDG is behind on everything. Is there a way to set an alternate source for intellisense? Maybe llvm or something? Would be convenient to use C23's #embed.

sdegutis avatar Jul 05 '25 10:07 sdegutis

@sdegutis Not with our C/C++ extension.

sean-mcmanus avatar Jul 07 '25 20:07 sean-mcmanus

Is there some way to suppress the "unrecognized preprocessing directive" error for a line or file as a workaround?

hungarian-notation avatar Jul 22 '25 16:07 hungarian-notation