File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 6666 if : steps.filter.outputs.has_cpp == 'true'
6767 run : ./scripts/create_compdb.py
6868
69+ - name : Build deps for clangd-tidy
70+ if : steps.filter.outputs.has_cpp == 'true'
71+ run : ./scripts/run_bazel.py build //scripts:deps_for_clangd_tidy
72+
6973 - name : Install clangd-tidy
7074 if : steps.filter.outputs.has_cpp == 'true'
7175 run : pip install clangd-tidy==1.1.0.post2
Original file line number Diff line number Diff line change 22# Exceptions. See /LICENSE for license information.
33# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44
5+ load ("@rules_cc//cc:cc_library.bzl" , "cc_library" )
56load ("@rules_python//python:defs.bzl" , "py_test" )
67
78py_test (
@@ -10,3 +11,17 @@ py_test(
1011 srcs = ["no_op_test.py" ],
1112 main = "no_op_test.py" ,
1213)
14+
15+ cc_library (
16+ name = "deps_for_clangd_tidy" ,
17+ srcs = ["deps_for_clangd_tidy.cpp" ],
18+ deps = [
19+ # `@boost_unordered` uses `strip_prefix`, which results in
20+ # `_virtual_includes` being part of the `compile_commands.json`. To
21+ # support tools like `clangd-tidy`, this is intended to generate that directory.
22+ #
23+ # For example:
24+ # bazel-out/<mode>/bin/external/+_repo_rules+boost_unordered/_virtual_includes/boost_unordered
25+ "@boost_unordered" ,
26+ ],
27+ )
Original file line number Diff line number Diff line change 1+ // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
2+ // Exceptions. See /LICENSE for license information.
3+ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+ // This file is only validating expected includes exist. See the BUILD target
6+ // for more information.
7+
8+ #include < boost/unordered/unordered_flat_map.hpp>
You can’t perform that action at this time.
0 commit comments