Fix build and exclue generated code from clang-tidy

chore: Fix clang version in devshell
This commit is contained in:
Sergey Kuznetsov
2026-07-24 12:29:12 +01:00
parent 7a3bd8ace2
commit ab97f4be20
2 changed files with 11 additions and 1 deletions

View File

@@ -13,6 +13,16 @@ endif()
corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Cargo.toml)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/.clang-tidy"
"# Auto-generated by crates/CMakeLists.txt. Do not edit.\n"
"# Neutralizes clang-tidy for corrosion/cxxbridge-generated C++.\n"
"# One check kept enabled to avoid clang-tidy's \"no checks enabled\" error.\n"
"Checks: '-*,google-readability-todo'\n"
"WarningsAsErrors: ''\n"
"HeaderFilterRegex: ''\n"
"InheritParentConfig: false\n"
)
# Umbrella target that aggregates all crate-generated code (cxxbridge headers,
# etc.). Build this before running clang-tidy so generated headers are present.
add_custom_target(xrpl_crates)

View File

@@ -4,7 +4,7 @@
namespace xrpl {
class RustInterop_test : public beast::unit_test::suite
class RustInterop_test : public beast::unit_test::Suite
{
public:
void