Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1287

Comment by HolyBlackCat on C/C++ plug-ins in vscode how to detect the macro definition of-D in makefile

$
0
0
First you generate compile_commands.json. On Linux bear does that, on Windows you can somehow parse it from the output of make --debug=print (or something similar). It contains all compiler flags. Then your C++ plugin should pick it up automatically. Clangd surely does that, and I think the stock C++ plugin too.

Viewing all articles
Browse latest Browse all 1287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>