[libc++] Simplify transitive includes test and fix a bug
authorLouis Dionne <ldionne.2@gmail.com>
Wed, 28 Sep 2022 20:24:20 +0000 (16:24 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 3 Oct 2022 20:09:07 +0000 (16:09 -0400)
commitc4ca3a2c4b00033c393f694c1d92d28ff55c69cd
tree4e2304e394e3e169e837e73c30b3532f5f121066
parentf4e6149d8217176f71591b277e9cd08be5f732c1
[libc++] Simplify transitive includes test and fix a bug

This patch incorporates the "sanitize" step of the transitive includes
test into the CSV generator itself. In doing so, it removes complexity
in the test but also fixes a bug where we would filter out <__mutex>
from the output, leading to an incorrect list of includes for the
<shared_mutex> header.

Differential Revision: https://reviews.llvm.org/D134830
libcxx/test/libcxx/transitive_includes.sanitize.py [deleted file]
libcxx/test/libcxx/transitive_includes.sh.cpp
libcxx/test/libcxx/transitive_includes/cxx14.csv
libcxx/test/libcxx/transitive_includes/cxx17.csv
libcxx/test/libcxx/transitive_includes/cxx20.csv
libcxx/test/libcxx/transitive_includes/cxx2b.csv
libcxx/test/libcxx/transitive_includes_to_csv.py