Conversation
|
@phlexbot tidy-fix readability-identifier-naming |
1 similar comment
|
@phlexbot tidy-fix readability-identifier-naming |
e1aa8ad to
fae5088
Compare
|
Looks like it's changing the |
The header guards are a known limitation for However, using a pre-generated fixes YAML file when fixing only specific issues can lead to actual inconsistencies in the code, so I will be re-doing the fixes for this PR after resolving the issue in the workflow PR. Thanks for spotting this, @beojan! |
6abc94e to
7137a36
Compare
Codecov Report❌ Patch coverage is @@ Coverage Diff @@
## main #362 +/- ##
==========================================
+ Coverage 86.37% 86.43% +0.05%
==========================================
Files 119 119
Lines 2400 2403 +3
Branches 387 387
==========================================
+ Hits 2073 2077 +4
Misses 207 207
+ Partials 120 119 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
@greenc-FNAL, all of these changes look consistent with what I would expect. It does illustrate at least one naming issue.
Whereas N and M seemed (to me) to be reasonable identifiers for representing the number of inputs and outputs, respectively, for an algorithm, the identifiers n and m are too easily glossed over.
I think the solution to this problem is to just replace n with num_inputs, and m with num_outputs (or something similar). That should maybe be another PR?
Given that the originals ( |
Let's fix it here then |
Per #362 (review): - `n` -> `num_inputs` - `m` -> `num_outputs`
7ef4e8c to
544cac5
Compare
|
@phlexbot clang-fix |
|
@phlexbot format |
Per #362 (review): - `n` -> `num_inputs` - `m` -> `num_outputs`
0e54e8f to
626bc70
Compare
|
@phlexbot format |
|
No automatic header-guards fixes were necessary. |
|
No automatic jsonnetfmt fixes were necessary. |
|
No automatic cmake-format fixes were necessary. |
|
No automatic clang-format fixes were necessary. |
|
No automatic markdownlint fixes were necessary. |
knoepfel
left a comment
There was a problem hiding this comment.
Only one request, @greenc-FNAL. Otherwise, looks great.
Per #362 (comment) Co-authored-by: Kyle Knoepfel <knoepfel@fnal.gov>
There was a problem hiding this comment.
Pull request overview
Adjusts C++ identifier names to satisfy the repository’s clang-tidy naming rules (notably lower_case for most identifiers and CamelCase for template parameters), primarily within core graph node/registration code and a demo test.
Changes:
- Renames various type aliases/constants/template parameters to match
readability-identifier-namingsettings. - Updates several core node implementations (transform/predicate/observer/unfold/fold) to use the renamed
num_inputs/num_outputsconstants. - Removes the
ENABLE_CLANG_TIDYCMake option and its build-time integration logic.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| test/demo-giantdata/unfold_transform_fold.cpp | Renames local tracker struct/type usage to match naming rules. |
| phlex/utilities/simple_ptr_map.hpp | Renames internal type alias and updates related signatures. |
| phlex/model/type_id.hpp | Renames internal signed-type alias to lower_case. |
| phlex/model/product_store.hpp | Renames tuple-size constant to num_inputs. |
| phlex/core/registration_api.hpp | Renames internal type aliases/constants (node_ptr, num_inputs, num_outputs). |
| phlex/core/registrar.hpp | Renames internal Nodes alias to nodes and updates member type. |
| phlex/core/multilayer_join_node.hpp | Renames template parameter to CamelCase and updates dependent uses. |
| phlex/core/input_arguments.hpp | Renames tuple-size constant to num_inputs. |
| phlex/core/declared_unfold.hpp | Renames internal aliases/constants and updates join/call wiring. |
| phlex/core/declared_transform.hpp | Renames internal constants and updates join/call wiring. |
| phlex/core/declared_predicate.hpp | Renames internal aliases/constants and updates join/call wiring. |
| phlex/core/declared_observer.hpp | Renames internal aliases/constants and updates join/call wiring. |
| phlex/core/declared_fold.hpp | Renames internal constants/type alias and updates join/call wiring (but introduces compile errors). |
| CMakeLists.txt | Removes ENABLE_CLANG_TIDY option and CMake-based clang-tidy integration. |
|
Automatic clang-format fixes pushed (commit 5deb57b). |
|
@copilot open a new pull request to apply changes based on the comments in this thread |
|
@greenc-FNAL I've opened a new pull request, #381, to work on those changes. Once the pull request is ready, I'll request review from you. |
Co-authored-by: greenc-FNAL <2372949+greenc-FNAL@users.noreply.github.com>
|
@phlexbot clang-fix |
|
No automatic clang-format fixes were necessary. |
|
No automatic clang-tidy fixes were necessary. |
- Per #362 (comment) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
phlex/utilities/simple_ptr_map.hpp:37
- The in-class comment still refers to
Ptr(e.g.,std::map<std::string, Ptr>/std::pair<..., Ptr>), but the alias was renamed toptr. Updating the comment to match the current alias name would avoid confusion when reading this specialization.
using ptr = std::unique_ptr<T>;
std::map<std::string, ptr> data_;
public:
// std::map<std::string, Ptr> has a default constructor that does
// not invoke the deleted default constructor of its
// std::pair<std::string const, Ptr> data member, but the compiler
1494b7a to
75b2636
Compare
No description provided.