HomePhabricator

[LINTER] Enforce using C++ headers instead of C compatible headers

Description

[LINTER] Enforce using C++ headers instead of C compatible headers

Summary:
This linter replaces the C compatibility headers with the native C++
ones.

Note: it currently conflicts with clang-format (the fix gets erased).
arc lint may need to be run multiple times to fix all the issues. A
solution to these conflicts should be submitted later.

Test Plan:
Add the following line:

#include <stddef.h>

Immediatly after #include <memory> in src/init.cpp.

arc lint

The linter should return an error for the newly added line and propose
the fix.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D3213

Details

Provenance
FabienAuthored on Apr 17 2019, 13:49
FabienPushed on Jun 5 2019, 17:51
Reviewer
Restricted Project
Differential Revision
D3213: [LINTER] Enforce using C++ headers instead of C compatible headers
Parents
rABC1c20703ddb80: Replace c compatibility header with native c++ header
Branches
Unknown
Tags
Unknown