HomePhabricator

[linter] Sanitize the headers include guard

Description

[linter] Sanitize the headers include guard

Summary: Replace with an underscore any non alphanumerical character. This will ensure that paths like /src/foo-bar/baz.h doesn't generate an invalid include guard.

Test Plan: Create a directory in src with some non alphanum char, and a header.h file in that directory. Check the linter returns a sanitizer include guard.

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Subscribers: sdulfari

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

Details

Provenance
FabienAuthored on Jul 27 2022, 19:33
FabienPushed on Jul 28 2022, 15:09
Reviewer
Restricted Project
Differential Revision
D11812: [linter] Sanitize the headers include guard
Parents
rABC23f296eba133: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown