Add strict C++20 build rules#3
Conversation
Added `build_utils` package containing `strict_cc_library`, `strict_cc_binary`, and `strict_cc_test`. These macros wrap the native cc rules and enforce C++20 standard and warnings as errors. Platform-specific flags are applied: - Linux: -std=c++20, -Wall, -Wextra, -Wpedantic, -Werror - Windows: /std:c++20, /WX, /W4 Added `platforms` dependency to `MODULE.bazel`. Verified with a test case in `tests/strict_check`.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
| return 42; | ||
| } | ||
|
|
||
| int main() { |
There was a problem hiding this comment.
Wrongly formatted file.
Use bazel run //... --config=clang-format-fix to format the code
There was a problem hiding this comment.
Ran bazel run //... --config=clang-format-fix to fix formatting.
Added `build_utils` package containing `strict_cc_library`, `strict_cc_binary`, and `strict_cc_test`. These macros wrap the native cc rules and enforce C++20 standard and warnings as errors. Platform-specific flags are applied: - Linux: -std=c++20, -Wall, -Wextra, -Wpedantic, -Werror - Windows: /std:c++20, /WX, /W4 Updated `src/BUILD.bazel` to use these new strict rules. Updated `MODULE.bazel` to include `platforms` dependency. Ran clang-format-fix to ensure code compliance.
Introduced
build_utilspackage withstrict_cc_*macros.Updated
MODULE.bazelto includeplatforms