Skip to content

Commit ad0e083

Browse files
committed
Format and check formatting for libcc2rs-macros
1 parent 68ec441 commit ad0e083

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ jobs:
4141
cargo fmt --manifest-path rules/Cargo.toml -- --check
4242
cargo fmt --manifest-path rule-preprocessor/Cargo.toml -- --check
4343
cargo fmt --manifest-path libcc2rs/Cargo.toml -- --check
44+
cargo fmt --manifest-path libcc2rs-macros/Cargo.toml -- --check
4445
find tests -name '*.rs' -print0 | xargs -0 rustfmt --check
4546
4647
- name: Check Rust lints
4748
run: |
4849
cargo clippy --manifest-path rules/Cargo.toml --all-targets --all-features -- -Dwarnings
4950
cargo +nightly clippy --manifest-path rule-preprocessor/Cargo.toml --all-targets --all-features -- -Dwarnings
5051
cargo clippy --manifest-path libcc2rs/Cargo.toml --all-targets --all-features -- -Dwarnings
52+
cargo clippy --manifest-path libcc2rs-macros/Cargo.toml --all-targets --all-features -- -Dwarnings

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ add_custom_target("format"
100100
COMMAND rustup run ${RUST_STABLE_VERSION} cargo fmt --manifest-path ${PROJECT_SOURCE_DIR}/rules/Cargo.toml
101101
COMMAND rustup run ${RUST_STABLE_VERSION} cargo fmt --manifest-path ${PROJECT_SOURCE_DIR}/rule-preprocessor/Cargo.toml
102102
COMMAND rustup run ${RUST_STABLE_VERSION} cargo fmt --manifest-path ${PROJECT_SOURCE_DIR}/libcc2rs/Cargo.toml
103+
COMMAND rustup run ${RUST_STABLE_VERSION} cargo fmt --manifest-path ${PROJECT_SOURCE_DIR}/libcc2rs-macros/Cargo.toml
103104
DEPENDS "install-rust-toolchain"
104105
COMMENT "Running clang-format and cargo fmt on all source files"
105106
VERBATIM

0 commit comments

Comments
 (0)