HomePhabricator

[clang-tidy] Add a new Android check "android-cloexec-socket"

Description

[clang-tidy] Add a new Android check "android-cloexec-socket"

Summary: socket() is better to include SOCK_CLOEXEC in its type argument to avoid the file descriptor leakage.

Reviewers: chh, Eugene.Zelenko, alexfh, hokein, aaron.ballman

Reviewed By: chh, alexfh

Subscribers: srhines, mgorny, JDevlieghere, xazax.hun, cfe-commits

Tags: #clang-tools-extra

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

Details

Committed
yawanngJul 12 2017, 10:43 AM
Reviewer
chh
Differential Revision
D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"
Parents
rL307817: GlobalISel: Handle selection of G_IMPLICIT_DEF in AArch64
Branches
Unknown
Tags
Unknown