Skip to content

refactor: rename non-PascalCase function names per Google C++ style#63

Merged
voltjia merged 5 commits intomasterfrom
fix/naming-violations
Apr 17, 2026
Merged

refactor: rename non-PascalCase function names per Google C++ style#63
voltjia merged 5 commits intomasterfrom
fix/naming-violations

Conversation

@voltjia
Copy link
Copy Markdown
Collaborator

@voltjia voltjia commented Apr 17, 2026

Summary

The Google C++ Style Guide requires PascalCase for non-accessor/mutator functions. A few functions in the codebase did not follow this rule. This PR renames them:

  • Operator::makeOperator::Make
  • Operator::callOperator::Call
  • detail::DispatchFuncUnwrap::callCall
  • WorkspacePool::ensureEnsure
  • workspacePoolGetWorkspacePool (was also camelCase)

Operator::active_implementation_indices was considered but kept — it reads as a getter (returns a derived property with no side effects), which the style guide allows to stay in snake_case.

voltjia added 5 commits April 17, 2026 09:09
Google C++ Style Guide requires PascalCase for non-accessor/mutator
functions. `make` constructs an operator instance, so it does not
qualify as an accessor.
Google C++ Style Guide requires PascalCase for non-accessor/mutator
functions. `call` invokes the operator rather than accessing state.
Google C++ Style Guide requires PascalCase for non-accessor/mutator
functions. `call` dispatches to an implementation rather than
accessing state.
Google C++ Style Guide requires PascalCase for non-accessor/mutator
functions. `ensure` performs a get-or-allocate action rather than a
simple get/set of a named member.
Google C++ Style Guide requires PascalCase for namespace-scope
functions. `workspacePool` was camelCase and is not an accessor of
any class member.
@voltjia
Copy link
Copy Markdown
Collaborator Author

voltjia commented Apr 17, 2026

results.log

@voltjia voltjia requested a review from Ziminli April 17, 2026 09:47
@voltjia voltjia merged commit 2ffbeb0 into master Apr 17, 2026
4 checks passed
@voltjia voltjia deleted the fix/naming-violations branch April 17, 2026 09:56
zhangyue207 pushed a commit that referenced this pull request Apr 17, 2026
…name + drop registry.h (SFINAE autodetect)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants