googleapis / googleapis/google-cloud-cpp

generated quickstarts shoudl use const& when iterating through lists

Open
#16,394 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.