boluo888
boluo888
always report `error: invalid argument '-std=c++17' not allowed with 'C' [clang-diagnostic-error] /root/.cache/bazel/_bazel_root/c0cc7bb48e68379f59a785b3d4b8baaf/execroot/__main__/bazel-out/k8-fastbuild/bin/external/com_github_google_glog/_virtual_includes/glog/glog/logging.h:42:10: error: 'iosfwd' file not found [clang-diagnostic-error] #include ` @erenon
` root@324072f8380a:~/test/bazel_clang_tidy# bazel build //example --aspects clang_tidy/clang_tidy.bzl%clang_tidy_aspect --output_groups=report Starting local Bazel server and connecting to it... INFO: Analyzed target //example:example (19 packages loaded, 89 targets configured). INFO: Found 1 target......
`bazel build //main:hello-world --config clang-tidy` `DEBUG: Rule 'bazel_clang_tidy' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1620650326 +0800" DEBUG: Repository bazel_clang_tidy instantiated at: /root/test/2clang_tidy_test/WORKSPACE:7:15:...
 ``` **BUILD** filegroup( name = "clang_tidy_config", data = [".clang-tidy"], visibility = ["//visibility:public"], ) **WORKSPACE** load( "@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", ) load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") git_repository( name = "bazel_clang_tidy", commit = "783aa523aafb4a6798a538c61e700b6ed27975a7", remote =...