]> granicus.if.org Git - clang/commit
[libclang] Determinize order of platform availability attrs
authorReid Kleckner <rnk@google.com>
Fri, 4 Aug 2017 21:52:25 +0000 (21:52 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 4 Aug 2017 21:52:25 +0000 (21:52 +0000)
commit0bebb0619b3476e7e89eb1af48d6590edb1b4ce6
tree851d69b02655ae061a58f8c52f944adb9e0b6529
parent4ae50e81b9a7c35f26a10bb103b8d46bfb6cf290
[libclang] Determinize order of platform availability attrs

Previously this code was doing std::sort on IdentifierInfo pointers. Now
it sorts alphabetically by platform name.

This should de-flake clang/test/Index/availability.c, which was failing
non-deterministically for me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310138 91177308-0d34-0410-b5e6-96231b3b80d8
tools/libclang/CIndex.cpp