When reading an ASTRecord, each RecordData is logically contained within a
single ModuleFile, and global(er) state is contained by a single ASTReader. This
means that any operations that read from a RecordData and reference an ASTReader
or a ModuleFile, will always reference the same ASTReader or ModuleFile.
ASTRecordReader groups these together so that parameters don't need to be
duplicated ad infinitum. Most uses of the Idx variable seem to be redunant
aliases as well, but I'll leave that for now.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 2148 Build 2148: arc lint + arc unit
Event Timeline
lib/Serialization/ASTReader.cpp | ||
---|---|---|
5870–5877 | Can you remove the .getRecordData() here and use ASTRecordReader::operator[] instead? |
Can you remove the .getRecordData() here and use ASTRecordReader::operator[] instead?