13 Commits

Author SHA1 Message Date
Jordan Rupprecht
86f74c4d01
[bazel] Use rules_cc everywhere and reformat (#149584)
We already use cc rules from `@rules_cc//cc:defs.bzl` in a few files,
but this uses it everywhere. Done automatically by running `buildifier
--lint=fix
--warnings=native-cc-binary,native-cc-library,native-cc-test,load` over
all the files. I also ran `buildifier` once more to ensure there wasn't
any missing formatting, so that caused a few unrelated diffs.
2025-07-29 16:30:25 -05:00
Adrian Kuegel
3d6f69873d [Bazel] Another followup fix for 97dee78 2025-05-26 06:16:17 +00:00
Pat Doyle
9c59946670
[bazel][test] Continue fixing bazel build from 97dee78 (#141336)
this continues the work in 0967a6f by generating a header from
clang-tools-extra/unittests/clang-doc/config.h.cmake

not clear all the tests pass yet, but fixes this build error at least:

ERROR:
/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/6a1efeb401da192d3572f00e2f11245b/external/llvm-project/clang-tools-extra/unittests/BUILD.bazel:57:8:
Compiling
clang-tools-extra/unittests/clang-doc/HTMLMustacheGeneratorTest.cpp
failed: (Exit 1): clang failed: error executing CppCompile command (from
target @@llvm-project//clang-tools-extra/unittests:clang_doc_test)
/usr/lib/llvm-18/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall
-Wthread-safety -Wself-assign -Wunused-but-set-parameter
-Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer ...
(remaining 328 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain
the sandbox build root for debugging

external/llvm-project/clang-tools-extra/unittests/clang-doc/HTMLMustacheGeneratorTest.cpp:12:10:
fatal error: 'config.h' file not found
   12 | #include "config.h"
      |          ^~~~~~~~~~
1 error generated.
2025-05-26 07:56:48 +02:00
Adrian Kuegel
896ea58b8f [Bazel] Add back the clang-doc:lib dependency. Still needed. 2025-05-23 09:58:46 +00:00
Adrian Kuegel
0967a6f71c [Bazel] Adjust to 97dee78eb364efab6ddb57bc6580c55971994f41
There is still one failing test, not sure yet how that can be fixed.
2025-05-23 09:53:32 +00:00
Jorge Gorbe Moya
5c154277ef [bazel] Add missing dep after 6a0e626af58bdf8ae8c07cfe8aec94f4565734a3 2025-05-16 17:56:32 -07:00
Jorge Gorbe Moya
5fb742ae27 [bazel] port 3bdfa6f3e8ebb6b3c139a7f4929f7016a6f56386 2025-05-12 19:17:02 -07:00
Keith Smiley
c3715ecb1e
[bazel] Add clang-apply-replacements BUILD file (#138054) 2025-04-30 16:57:35 -07:00
Keith Smiley
ba530e6b64
[bazel] Add initial clang-doc config (#111779) 2024-10-10 11:42:23 -07:00
Pranav Kant
53e3380786 [Bazel] Fix build 2023-06-13 22:44:11 +00:00
Haojian Wu
c5564a0075 [bazel] Add include-cleaner targets, fix clang-tidy build for c28506ba4b6961950849f8fdecd0cf7e503a14f9 2023-06-02 19:38:08 +02:00
Mikhail Goncharov
86bce125e9 [bazel] update build for d60d3455eb2 2023-03-17 13:31:47 +01:00
Jathu Satkunarajah
f702822371 [bazel] create a clang-tidy binary target
Create a binary target for clang-tidy. Tested by running:

```
$ bazel build --config=generic_clang @llvm-project//clang-tools-extra/...
$ bazel test --config=generic_clang @llvm-project//clang-tools-extra/...
$ bazel run --config=generic_clang @llvm-project//clang-tools-extra/clang-tidy -- --help
```

Reviewed By: #bazel_build, aaronmondal

Differential Revision: https://reviews.llvm.org/D143804
2023-02-15 13:56:06 +01:00