Skip to content

Commit a6f4a54

Browse files
authored
[Clang][NFC] Const correctness fix for range based for loop (#137431)
Static analysis flagged that we did not make const a item declaration b/c we did not modify it all during the loop.
1 parent 5953f19 commit a6f4a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/utils/TableGen/ClangBuiltinTemplatesEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ParseTemplateParameterList(ParserState &PS,
107107
}
108108

109109
bool First = true;
110-
for (auto e : Params) {
110+
for (const auto &e : Params) {
111111
if (First) {
112112
First = false;
113113
Code << e;

0 commit comments

Comments
 (0)