Use range-based for loops in TableGen.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Nice cleanup! I presume this passes all the TableGen tests?
I guess you should capitalize all the range iterator variables.
llvm/utils/TableGen/CodeGenRegisters.cpp | ||
---|---|---|
587–588 | Code in LLVM almost always uses "unsigned" instead of "unsigned int". This occurs several more times. | |
llvm/utils/TableGen/CodeGenSchedule.cpp | ||
1787–1788 | Why are reference? Isn't ProctResourceDef a Record *? | |
1953–1957 | Why can't this be on one line now? | |
1953–1957 | This is a pointer so should be "auto *". LLVM prefers not to obscure pointers with auto. I think this applies to other places in the patch. We might even want "Record *" here. We're pretty conservative about auto unless the type is obvious for the reader. | |
1962–1965 | Single line? |
clang-tidy: warning: invalid case style for variable 'it' [readability-identifier-naming]
not useful