HomePhabricator

[clang-tidy] TwineLocalCheck: add param # checking

Description

[clang-tidy] TwineLocalCheck: add param # checking

Summary:
The statement getArg tries to get the first one without checking, which may cause segmentation fault.

Reviewers: chh, bkramer

Reviewed By: bkramer

Subscribers: cfe-commits, xazax.hun

Tags: #clang-tools-extra

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

Details

Committed
yawanngMay 13 2017, 9:14 PM
Reviewer
bkramer
Differential Revision
D33103: [clang-tidy] TwineLocalCheck: add param # checking
Branches
Unknown
Tags
Unknown