Skip to content

Commit 4776f32

Browse files
authored
Disable the modernize headers clang-tidy check (#6045)
Our style guide suggests using `<stdint.h>` and not the `std::` qualifiers, and this is consistent with other headers like `<time.h>`. The `clang-tidy` check enforces the reverse pattern, so disable it to allow us to continue following our style pattern.
1 parent 1ec8ac7 commit 4776f32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Checks:
2222
- '-misc-const-correctness'
2323
- '-misc-include-cleaner'
2424
- '-misc-use-anonymous-namespace'
25+
- '-modernize-deprecated-headers'
2526
- '-modernize-return-braced-init-list'
2627
- '-modernize-use-default-member-init'
2728
- '-modernize-use-integer-sign-comparison'

common/filesystem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "common/filesystem.h"
66

77
#include <fcntl.h>
8-
#include <time.h> // NOLINT(modernize-deprecated-headers)
8+
#include <time.h>
99
#include <unistd.h>
1010

1111
#include <chrono>

0 commit comments

Comments
 (0)