llvm-project/clang-tools-extra/clang-tidy
Roman Lebedev 058b628264 [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 [[ https://bugs.llvm.org/show_bug.cgi?id=40604 | 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

llvm-svn: 353327
2019-02-06 19:17:30 +00:00
..
abseil [clang-tidy] Add the abseil-duration-unnecessary-conversion check 2019-02-04 19:28:20 +00:00
android Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
boost Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
bugprone [clang-tidy] refactor bugprone-exception-escape analysis into class 2019-01-31 10:46:37 +00:00
cert Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
cppcoreguidelines Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
fuchsia Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
google Revert rCTE352968 due to compilation failures 💥 2019-02-02 23:01:20 +00:00
hicpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
misc [clang-tidy] misc-non-private-member-variables-in-classes: ignore implicit methods 2019-01-20 14:28:27 +00:00
modernize [clang-tidy] modernize-avoid-c-arrays: avoid main function (PR40604) 2019-02-06 19:17:30 +00:00
mpi Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
objc Revert rCTE351921 to fix documentation geneeration. 2019-01-23 02:58:59 +00:00
performance Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
plugin Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
portability Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
readability [clang-tidy] Work around http://llvm.org/PR40392 2019-01-21 16:26:54 +00:00
tool Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
utils [clang-tidy] refactor bugprone-exception-escape analysis into class 2019-01-31 10:46:37 +00:00
zircon Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Add explicit dependency on clangSerialization after rC348911 2018-12-12 08:25:16 +00:00
ClangTidy.cpp [clang-tidy] Use getStripPluginsAdjuster 2019-01-21 10:10:18 +00:00
ClangTidy.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyDiagnosticConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyDiagnosticConsumer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyForceLinker.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyModule.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyModule.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyModuleRegistry.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyOptions.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyProfiling.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangTidyProfiling.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
add_new_check.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
rename_check.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00