browsermt / bergamot-translator

Cross platform C++ library focusing on optimized machine translation on the consumer-grade device.
http://browser.mt
Mozilla Public License 2.0
327 stars 36 forks source link

Generate a compile_commands.json by default with cmake #461

Closed gregtatum closed 1 year ago

gregtatum commented 1 year ago

I use vscode, and this is required to get the in-editor language server working. This is a standardized file that other editors can use as well to understand the C++ code.

https://clang.llvm.org/docs/JSONCompilationDatabase.html

The following is an example of the language server providing type information.

image