llvm-project/libcxx
Mark de Wever 9185d6e6bc [libc++] Avoids self references in transitive include test.
The output of --trace-includes starts with the header whose includes are
being processed. Since the sanitize script processed all lines this
include was added to the list of transitive includes. This looks odd
since it implies all headers have a cyclic dependency on themselves.
This change removes this self-include.

Instead of just dropping the first line extract that header and use it
to guard against cyclic dependencies in the header itself.

The regex used has a small improvement; don't capture groups that aren't
extracted.

Depends on D132284

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D132787
2022-09-01 20:33:37 +02:00
..
benchmarks [libc++] Extend check for non-ASCII characters to src/, test/ and benchmarks/ 2022-08-23 18:36:38 -04:00
cmake [runtimes] Don't link against compiler-rt when we don't find it 2022-08-24 10:33:10 -04:00
docs [libc++] Reduces the number of transitive includes. 2022-08-31 19:50:03 +02:00
include [NFC][libc++] char_traits code cleanups. 2022-08-31 22:18:10 +02:00
lib
src [libc++] Inlines format_error for clang-cl DLL. 2022-08-31 19:13:19 +02:00
test [libc++] Avoids self references in transitive include test. 2022-09-01 20:33:37 +02:00
utils [libc++] Reduces the number of transitive includes. 2022-08-31 19:50:03 +02:00
.clang-format [libc++][NFC] Rename the constexpr macros 2022-08-19 15:35:02 +02:00
.clang-tidy [libc++][NFC] Enable modernize-use-override 2022-08-25 20:55:08 +02:00
.gitignore
CMakeLists.txt [libc++] Inlines format_error for clang-cl DLL. 2022-08-31 19:13:19 +02:00
CREDITS.TXT
LICENSE.TXT
TODO.TXT
appveyor-reqs-install.cmd
appveyor.yml