Skip to content

Commit 18ea87f

Browse files
Merge pull request #812 from johnmcfarlane/system-header-shadows
System header shadows
2 parents 845045c + d057fd1 commit 18ea87f

31 files changed

Lines changed: 36 additions & 25 deletions

.clang-tidy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
Checks: >
3-
*,
3+
-*,
4+
llvm-include-order,
45
-llvmlibc-*,
56
-clang-analyzer-osx.*,
67
-cppcoreguidelines-pro-bounds-constant-array-index,

include/cnl/_impl/duplex_integer/digits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#if !defined(CNL_IMPL_DUPLEX_INTEGER_DIGITS_H)
88
#define CNL_IMPL_DUPLEX_INTEGER_DIGITS_H
99

10-
#include "../assert.h"
10+
#include "../cnl_assert.h"
1111
#include "../num_traits/digits.h"
1212
#include "forward_declaration.h"
1313
#include "remove_signedness.h"

include/cnl/_impl/duplex_integer/numeric_limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#if !defined(CNL_IMPL_DUPLEX_INTEGER_NUMERIC_LIMITS_H)
88
#define CNL_IMPL_DUPLEX_INTEGER_NUMERIC_LIMITS_H
99

10-
#include "../../limits.h"
10+
#include "../../numeric_limits.h"
1111
#include "../num_traits/from_rep.h"
1212
#include "ctors.h"
1313
#include "forward_declaration.h"

include/cnl/_impl/elastic_integer/limits.h renamed to include/cnl/_impl/elastic_integer/numeric_limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#if !defined(CNL_IMPL_ELASTIC_INTEGER_LIMITS_H)
88
#define CNL_IMPL_ELASTIC_INTEGER_LIMITS_H
99

10-
#include "../../limits.h"
10+
#include "../../numeric_limits.h"
1111
#include "../limits/lowest.h"
1212
#include "definition.h"
1313
#include "from_rep.h"

include/cnl/_impl/fraction/make_fraction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#if !defined(CNL_IMPL_FRACTION_MAKE_FRACTION_H)
88
#define CNL_IMPL_FRACTION_MAKE_FRACTION_H
99

10-
#include "../../limits.h"
11-
#include "../assert.h"
10+
#include "../../numeric_limits.h"
11+
#include "../cnl_assert.h"
1212
#include "../type_traits/enable_if.h"
1313
#include "../type_traits/remove_signedness.h"
1414
#include "type.h"

include/cnl/_impl/fraction/type.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "../type_traits/enable_if.h"
1212
#include "../type_traits/is_integral.h"
1313

14+
#include <climits>
1415
#include <type_traits>
1516

1617
/// compositional numeric library

include/cnl/_impl/num_traits/digits.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "../used_digits.h"
1818
#include "is_composite.h"
1919

20+
#include <climits>
2021
#include <type_traits>
2122

2223
namespace cnl {

include/cnl/_impl/num_traits/set_digits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#if !defined(CNL_IMPL_NUM_TRAITS_SET_DIGITS)
1111
#define CNL_IMPL_NUM_TRAITS_SET_DIGITS
1212

13-
#include "../../limits.h"
13+
#include "../../numeric_limits.h"
1414
#include "../type_traits/enable_if.h"
1515
#include "../type_traits/is_integral.h"
1616

include/cnl/_impl/number/numeric_limits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#if !defined(CNL_IMPL_NUMBER_NUMERIC_LIMITS_H)
88
#define CNL_IMPL_NUMBER_NUMERIC_LIMITS_H
99

10-
#include "../../limits.h"
10+
#include "../../numeric_limits.h"
1111
#include "definition.h"
1212

1313
/// compositional numeric library

0 commit comments

Comments
 (0)