Reduce header complexity

- Remove most __ASSEMBLER__ __LINKER__ ifdefs
- Rename libc/intrin/bits.h to libc/serialize.h
- Block pthread cancelation in fchmodat() polyfill
- Remove `clang-format off` statements in third_party
This commit is contained in:
Justine Tunney 2023-11-28 14:24:28 -08:00
parent 96f979dfc5
commit fa20edc44d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3057 changed files with 410 additions and 4398 deletions

View file

@ -1,13 +0,0 @@
BasedOnStyle: LLVM
---
Language: Cpp
Standard: Cpp03
AlwaysBreakTemplateDeclarations: true
PointerAlignment: Left
# Disable formatting options which may break tests.
SortIncludes: false
ReflowComments: false
---

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===----------------------- algorithm.cpp --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------------ any -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- atomic -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- ccomplex ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===---------------------------- cfenv -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- cfloat -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- chrono.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- cinttypes --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- ciso646 ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- clocale ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- codecvt -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- compare -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- complex ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===---------------------- condition_variable ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===-------------------- condition_variable.cpp --------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===---------------- condition_variable_destructor.cpp ------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- csetjmp ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- csignal ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- cstdbool ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- ctgmath -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------ directory_iterator.cpp ----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------- execution ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- __config ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- filesystem -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===----------------------------------------------------------------------===////
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===----------------------- forward_list ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------- fstream ------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===----------------------- functional.cpp -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- future -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- future.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===-------------------------- hash.cpp ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===----------------------------------------------------------------------===////
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===----------------------- config_elast.h -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- iomanip ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===-------------------------- ios.cpp -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- iostream ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------ iostream.cpp --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- locale.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- locale.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- locale.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- locale.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------ memory.cpp ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- mutex ------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- mutex.cpp ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===--------------------- filesystem/ops.cpp -----------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------ optional.cpp --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- regex ------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===-------------------------- regex.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- scoped_allocator --------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------ shared_mutex --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===---------------------- shared_mutex.cpp ------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------------ span ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===---------------------------- stack -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- string.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- strstream --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------ strstream.cpp -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===--------------------------- thread -----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------- thread.cpp----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- typeindex ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===-------------------------- valarray ----------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,4 +1,3 @@
// clang-format off
//===------------------------ valarray.cpp --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

View file

@ -1,5 +1,4 @@
// -*- C++ -*-
// clang-format off
//===------------------------------ variant -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.