load("@bazel_tools//tools/build_defs/repo:http.bzl","http_archive")# Hedron's Compile Commands Extractor for Bazel# https://github.com/hedronvision/bazel-compile-commands-extractorhttp_archive(name="hedron_compile_commands",# Replace the commit hash (0e990032f3c5a866e72615cf67e5ce22186dcb...
load("@bazel_tools//tools/build_defs/repo:http.bzl","http_archive")http_archive( name ="hedron_compile_commands", # 建议把下面两处 commit hash 换成 github 上最新的版本 url ="https://github.com/hedronvision/bazel-compile-commands-extractor/archive/ed994039a951b736091776d677f324b3903ef939....
Goal: Enable awesome tooling for Bazel users of the C language family. - Actions · hedronvision/bazel-compile-commands-extractor
hedronvision/bazel-compile-commands-extractor enables autocomplete, smart navigation, quick fixes, and more in a wide variety of extensible editors, including VSCode, Vim, Emacs, Atom, and Sublime. It lets language servers, like clangd, ccls, and other types of tooling, draw upon Bazel’s under...
is_using_fission crosstool variable is now exposed in all compile actions when fission is active (it used to be exposed only for linking actions). incompatible_use_toolchain_providers_in_java_common: pass JavaToolchainInfo and JavaRuntimeInfo providers to java_common APIs instead of configured tar...
hedron_compile_commands_setup() 然后使用命令bazel run @hedron_compile_commands//:refresh_all 本质上这将生成包括.gitignore在内的给 clangd 等 lsp-server 参考的配置文件。 参考:GitHub - hedronvision/bazel-compile-commands-extractor: Goal: Enable awesome tooling for Bazel users of the C language fami...
In the JavaInfo created by java_common.create_provider now includes both direct and transitive arguments in transitive_compile_time_jars and transitive_runtime_jars Allow --worker_max_instances to take MnemonicName=value to specify max for each worker. Allow java_toolchain.header_compiler to be ...
I'm working on a project in which we use .h files for cpp headers. For some reason, clangd treats these like C files after I've run the hedron commands extractor, and then VSCode complains a lot because we're including C++ libraries in w...
https://github.com/hedronvision/bazel-compile-commands-extractor Uses an alternate approach based on aquery. This directly asks Bazel for its exact build commands, while still being fast and not requiring a full build. Avoids whole categories of issues. ...
Move (c/cxx)opts from legacy_compile_flags to user_compile_flags CppRules: Remove optional_*_flag fields from CROSSTOOL, they are not used, and could be expressed using features. Introduce --incompatible_disable_objc_provider_resources to turn off all resource-related fields of the Objc pro...