googleapis / googleapis/google-cloud-cpp
generated quickstarts shoudl use const& when iterating through lists
Open
cpp: generator
type: cleanup
- Dominant language
- C++
- Stars
- 659
- Forks
- 462
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 89
Description
Instead of `for (auto e : ListFoo())` use `for (auto const& e : ListFoo())`.
Contributor guide
Research direction
Locate the generator or templates that produce the quickstarts, then search for loops matching `for (auto e : ListFoo())`. Update the generated iteration pattern consistently and run the repository's relevant generation or validation checks; done means generated quickstarts use `auto const&` for list elements.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- developer-experience
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100