DeclaratorInfo -> TypeSourceInfo. Makes an effort to rename associated variables,
but the results are imperfect.
For posterity, I did:
cat <<EOF > $cmdfile
s/DeclaratorInfo/TypeSourceInfo/g
s/DInfo/TInfo/g
s/TypeTypeSourceInfo/TypeSourceInfo/g
s/SourceTypeSourceInfo/TypeSourceInfo/g
EOF
find lib -name '*.cpp' -not -path 'lib/Parse/*' -exec sed -i '' -f $cmdfile '{}' \;
find lib -name '*.h' -exec sed -i '' -f $cmdfile '{}' \;
find include -name '*.h' -not -path 'include/clang/Parse/*' -not -path 'include/clang/Basic/*' -exec sed -i '' -f $cmdfile '{}' \;
llvm-svn: 90743
This commit is contained in:
@@ -107,7 +107,7 @@ void PCHDeclReader::VisitTypedefDecl(TypedefDecl *TD) {
|
||||
// the type associated with the TypedefDecl.
|
||||
VisitNamedDecl(TD);
|
||||
uint64_t TypeData = Record[Idx++];
|
||||
TD->setTypeDeclaratorInfo(Reader.GetDeclaratorInfo(Record, Idx));
|
||||
TD->setTypeSourceInfo(Reader.GetTypeSourceInfo(Record, Idx));
|
||||
TD->setTypeForDecl(Reader.GetType(TypeData).getTypePtr());
|
||||
}
|
||||
|
||||
@@ -150,9 +150,9 @@ void PCHDeclReader::VisitEnumConstantDecl(EnumConstantDecl *ECD) {
|
||||
|
||||
void PCHDeclReader::VisitDeclaratorDecl(DeclaratorDecl *DD) {
|
||||
VisitValueDecl(DD);
|
||||
DeclaratorInfo *DInfo = Reader.GetDeclaratorInfo(Record, Idx);
|
||||
if (DInfo)
|
||||
DD->setDeclaratorInfo(DInfo);
|
||||
TypeSourceInfo *TInfo = Reader.GetTypeSourceInfo(Record, Idx);
|
||||
if (TInfo)
|
||||
DD->setTypeSourceInfo(TInfo);
|
||||
}
|
||||
|
||||
void PCHDeclReader::VisitFunctionDecl(FunctionDecl *FD) {
|
||||
|
||||
Reference in New Issue
Block a user