aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/exception.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2023-12-18 14:01:33 -0500
committerGitHub <noreply@github.com>2023-12-18 14:01:33 -0500
commit9783f28cbb155e4a8d49c12e1c60ce14dcfaf0c7 (patch)
tree4119e3edc01dd51cf2752b2a3341c34d8a3700ac /libcxx/src/exception.cpp
parente5c523e8610492b3256dde6856811b527b4dcb35 (diff)
downloadllvm-9783f28cbb155e4a8d49c12e1c60ce14dcfaf0c7.zip
llvm-9783f28cbb155e4a8d49c12e1c60ce14dcfaf0c7.tar.gz
llvm-9783f28cbb155e4a8d49c12e1c60ce14dcfaf0c7.tar.bz2
[libc++] Format the code base (#74334)
This patch runs clang-format on all of libcxx/include and libcxx/src, in accordance with the RFC discussed at [1]. Follow-up patches will format the benchmarks, the test suite and remaining parts of the code. I'm splitting this one into its own patch so the diff is a bit easier to review. This patch was generated with: find libcxx/include libcxx/src -type f \ | grep -v 'module.modulemap.in' \ | grep -v 'CMakeLists.txt' \ | grep -v 'README.txt' \ | grep -v 'libcxx.imp' \ | grep -v '__config_site.in' \ | xargs clang-format -i A Git merge driver is available in libcxx/utils/clang-format-merge-driver.sh to help resolve merge and rebase issues across these formatting changes. [1]: https://discourse.llvm.org/t/rfc-clang-formatting-all-of-libc-once-and-for-all
Diffstat (limited to 'libcxx/src/exception.cpp')
-rw-r--r--libcxx/src/exception.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/libcxx/src/exception.cpp b/libcxx/src/exception.cpp
index e5d6b9e..ddb186b 100644
--- a/libcxx/src/exception.cpp
+++ b/libcxx/src/exception.cpp
@@ -11,25 +11,25 @@
#include <typeinfo>
#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)
- #include <cxxabi.h>
- using namespace __cxxabiv1;
- #define HAVE_DEPENDENT_EH_ABI 1
+# include <cxxabi.h>
+using namespace __cxxabiv1;
+# define HAVE_DEPENDENT_EH_ABI 1
#endif
#if defined(_LIBCPP_ABI_MICROSOFT)
-#include "support/runtime/exception_msvc.ipp"
-#include "support/runtime/exception_pointer_msvc.ipp"
+# include "support/runtime/exception_msvc.ipp"
+# include "support/runtime/exception_pointer_msvc.ipp"
#elif defined(_LIBCPPABI_VERSION)
-#include "support/runtime/exception_libcxxabi.ipp"
-#include "support/runtime/exception_pointer_cxxabi.ipp"
+# include "support/runtime/exception_libcxxabi.ipp"
+# include "support/runtime/exception_pointer_cxxabi.ipp"
#elif defined(LIBCXXRT)
-#include "support/runtime/exception_libcxxrt.ipp"
-#include "support/runtime/exception_pointer_cxxabi.ipp"
+# include "support/runtime/exception_libcxxrt.ipp"
+# include "support/runtime/exception_pointer_cxxabi.ipp"
#elif defined(__GLIBCXX__)
-#include "support/runtime/exception_glibcxx.ipp"
-#include "support/runtime/exception_pointer_glibcxx.ipp"
+# include "support/runtime/exception_glibcxx.ipp"
+# include "support/runtime/exception_pointer_glibcxx.ipp"
#else
-#include "include/atomic_support.h"
-#include "support/runtime/exception_fallback.ipp"
-#include "support/runtime/exception_pointer_unimplemented.ipp"
+# include "include/atomic_support.h"
+# include "support/runtime/exception_fallback.ipp"
+# include "support/runtime/exception_pointer_unimplemented.ipp"
#endif