[Modules] Make header inclusion order from umbrella dirs deterministic
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 12 Dec 2016 22:41:20 +0000 (22:41 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Mon, 12 Dec 2016 22:41:20 +0000 (22:41 +0000)
commit630dce3947bbe45afefb695e32a7f0b2b4d38d99
tree29caea425b4d88556cb78d91ed5248c5e3de06ed
parenta4b43bf8e85cea87fa2b0a6aec31781c5be520c7
[Modules] Make header inclusion order from umbrella dirs deterministic

Sort the headers by name before adding the includes in
collectModuleHeaderIncludes. This makes the include order for building
umbrellas deterministic across different filesystems and also guarantees
that the ASTWriter always dump top headers in the same order.

There's currently no good way to test for this behavior.

rdar://problem/28116411

llvm-svn: 289478
clang/lib/Frontend/FrontendActions.cpp