Skip to content

Commit 7dd9354

Browse files
committed
fmt
1 parent 7a384d2 commit 7dd9354

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

libc/include/llvm-libc-types/cfloat128.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,19 @@
1111

1212
#include "../llvm-libc-macros/float-macros.h" // LDBL_MANT_DIG
1313

14-
// Currently, the complex variant of C23 `_Float128` type is only defined as a built-in type in GCC 7
15-
// or later, and only for C. For C++, or for clang, `__float128` is defined
16-
// instead, and only on x86-64 targets.
14+
// Currently, the complex variant of C23 `_Float128` type is only defined as a
15+
// built-in type in GCC 7 or later, and only for C. For C++, or for clang,
16+
// the complex variant of `__float128` is defined instead, and only on x86-64 targets.
1717
//
18-
// TODO: Update the complex variant of C23 `_Float128` type detection again when clang supports it.
18+
// TODO: Update the complex variant of C23 `_Float128` type detection again when
19+
// clang supports it.
1920
// https://github.com/llvm/llvm-project/issues/80195
20-
#if defined(__STDC_IEC_60559_BFP__) && !defined(__clang__) && \
21+
#if defined(__STDC_IEC_60559_BFP__) && !defined(__clang__) && \
2122
!defined(__cplusplus)
2223
#define LIBC_TYPES_HAS_CFLOAT128
2324
typedef _Complex _Float128 cfloat128;
2425
#elif defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__)
25-
// Use __float128 type. gcc and clang sometime use __SIZEOF_FLOAT128__ to
26+
// Use _Complex __float128 type. gcc and clang sometime use __SIZEOF_FLOAT128__ to
2627
// notify the availability of __float128.
2728
// clang also uses __FLOAT128__ macro to notify the availability of __float128
2829
// type: https://reviews.llvm.org/D15120

libc/src/__support/CPP/type_traits/is_complex.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ template <typename T> struct is_complex {
3737
#ifdef LIBC_TYPES_HAS_CFLOAT128
3838
,
3939
cfloat128
40-
#endif
40+
#endif
4141
>();
4242
};
4343
template <typename T>

libc/src/__support/macros/properties/complex_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#ifndef LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_CTYPES_H
1111
#define LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_CTYPES_H
1212

13-
#include "include/llvm-libc-types/cfloat16.h"
1413
#include "include/llvm-libc-types/cfloat128.h"
14+
#include "include/llvm-libc-types/cfloat16.h"
1515
#include "types.h"
1616

1717
// -- cfloat16 support --------------------------------------------------------

libc/test/UnitTest/FPMatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
135135
#ifdef LIBC_TYPES_HAS_CFLOAT128
136136
else if (cpp::is_complex_type_same<T, cfloat128>)
137137
return matchComplex<float128>();
138-
#endif
138+
#endif
139139
}
140140

141141
void explainError() override {

0 commit comments

Comments
 (0)