HomePhabricator

[clang-tidy] modernize-avoid-c-arrays: avoid main function (PR40604)

Description

[clang-tidy] modernize-avoid-c-arrays: avoid main function (PR40604)

Summary:
The check should ignore the main function, the program entry point.
It is not possible to use std::array<> for the argv.
The alternative is to use char** argv.

Fixes PR40604

Reviewers: JonasToth, aaron.ballman

Reviewed By: aaron.ballman

Subscribers: xazax.hun, hans, cfe-commits

Tags: #clang-tools-extra, #clang

Differential Revision: https://reviews.llvm.org/D57787

Details

Committed
lebedevriFeb 6 2019, 11:17 AM
Reviewer
aaron.ballman
Differential Revision
D57787: [clang-tidy] modernize-avoid-c-arrays: avoid main function (PR40604)
Branches
Unknown
Tags
Unknown