[libcxx-commits] [libcxx] r356693 - [NFC][libc++] Reindent #ifdefs
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Mar 21 11:19:22 PDT 2019
Author: ldionne
Date: Thu Mar 21 11:19:21 2019
New Revision: 356693
URL: http://llvm.org/viewvc/llvm-project?rev=356693&view=rev
Log:
[NFC][libc++] Reindent #ifdefs
I don't understand why we don't always do that. We do it for normal `if`s
in the code, but not for preprocessor `if`s? It's a lot more readable when
indented properly.
Modified:
libcxx/trunk/src/new.cpp
Modified: libcxx/trunk/src/new.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/new.cpp?rev=356693&r1=356692&r2=356693&view=diff
==============================================================================
--- libcxx/trunk/src/new.cpp (original)
+++ libcxx/trunk/src/new.cpp Thu Mar 21 11:19:21 2019
@@ -12,22 +12,22 @@
#include "include/atomic_support.h"
#if defined(_LIBCPP_ABI_MICROSOFT)
-#if !defined(_LIBCPP_ABI_VCRUNTIME)
-#include "support/runtime/new_handler_fallback.ipp"
-#endif
+# if !defined(_LIBCPP_ABI_VCRUNTIME)
+# include "support/runtime/new_handler_fallback.ipp"
+# endif
#elif defined(LIBCXX_BUILDING_LIBCXXABI)
-#include <cxxabi.h>
+# include <cxxabi.h>
#elif defined(LIBCXXRT)
-#include <cxxabi.h>
-#include "support/runtime/new_handler_fallback.ipp"
+# include <cxxabi.h>
+# include "support/runtime/new_handler_fallback.ipp"
#elif defined(__GLIBCXX__)
-// nothing todo
+ // nothing to do
#else
-# if defined(__APPLE__) && !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY)
-# include <cxxabi.h> // FIXME: remove this once buildit is gone.
-# else
-# include "support/runtime/new_handler_fallback.ipp"
-# endif
+# if defined(__APPLE__) && !defined(_LIBCPP_BUILDING_HAS_NO_ABI_LIBRARY)
+# include <cxxabi.h> // FIXME: remove this once buildit is gone.
+# else
+# include "support/runtime/new_handler_fallback.ipp"
+# endif
#endif
namespace std
More information about the libcxx-commits
mailing list