]> granicus.if.org Git - clang/commit
[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)
commitb142ff5e65a2d7485bd533eec7653e9c0ef9670c
tree2f54c518c035cc3b121c37a47e988755ab4d68e1
parent22d59b937301f26dde4bde2822452393f578962d
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/FrontendActions.cpp