Get optimization remarks from clang directly in your source codeThis extension is still in preview and may not functionSetup:
Compilation databaseThe tool needs to know how to compile your code and it does so using a compilation database. You can read about what they are and how to create them here. If you're using cmake, there is a flag in the link telling you how to generate the compile_commands.json Make has no built in way to generate a compilation database but you can generate one using compiledb as follows:
Disclaimers
|