apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.38k stars 3.22k forks source link

[Enhancement] automatically create soft link for command compile.json for clangd user #21657

Open ByteYue opened 1 year ago

ByteYue commented 1 year ago

Search before asking

Description

Formerly, developers should manually set the --compile-commands-dir argument for clangd. According to clangd's official documentation, we can make one soft link to the 'compile_commands.json' so that clangd would automatically detect it and then do all the semantic analytical workloads.

Solution

  1. add one new ignore item for compile_commands.json in the root path
  2. add logic in the build.sh which can detect the build dir and make soft link for the compile_commands.json

Are you willing to submit PR?

Code of Conduct

LHG41278 commented 1 year ago

I want to take this issue. thanks very much.