Skip to content

bolt/include/bolt/Passes/StokeInfo.h: 2 * clumsy declaration of Range variable #91195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dcb314 opened this issue May 6, 2024 · 0 comments

Comments

@dcb314
Copy link

dcb314 commented May 6, 2024

Static analyser cppcheck says:

bolt/include/bolt/Passes/StokeInfo.h:90:24: performance: Range variable 'S' should be declared as const reference. [iterateByValue]

Source code is

  for (std::string S : DefIn)
    Outfile << "%" << S << " ";

bolt/include/bolt/Passes/StokeInfo.h:93:24: performance: Range variable 'S' should be declared as const reference. [iterateByValue]

Duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants