]> granicus.if.org Git - clang/commit
[modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Jun 2018 20:46:25 +0000 (20:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Jun 2018 20:46:25 +0000 (20:46 +0000)
commit013450120264d4ef3d486856a67866a91e4f56f6
tree7707650157b6638211ed830da6dbbed089fdc6bc
parentdd5dcddd4129abf56d69a0d5b380cc7c31ef07ee
[modules] Emit the type of the TypeSourceInfo for a DeclaratorDecl (but
not the corresponding location information) earlier.

We need the type as written in order to properly merge functions with
deduced return types, so we need to load that early. But we don't want
to load the location information early, because that contains
problematic things such as the function parameters.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336016 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTReader.h
include/clang/Serialization/ASTWriter.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ASTWriterDecl.cpp