HomePhabricator

[clang-tidy] Avoid C arrays check

Authored by lebedev.ri on Nov 14 2018, 1:01 AM.

Description

[clang-tidy] Avoid C arrays check

Summary:
PR39224
As discussed, we can't always do the transform automatically due to that array-to-pointer decay of C array.
In order to detect whether we can do said transform, we'd need to be able to see all usages of said array,
which is, i would say, rather impossible if e.g. it is in the header.
Thus right now no fixit exists.

Exceptions: extern "C" code.

References:

Reviewers: aaron.ballman, JonasToth, alexfh, hokein, xazax.hun

Reviewed By: JonasToth

Subscribers: Eugene.Zelenko, mgorny, rnkovacs, cfe-commits

Tags: #clang-tools-extra

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

llvm-svn: 346835

Details

Committed
lebedev.riNov 14 2018, 1:01 AM
Reviewer
JonasToth
Differential Revision
D53771: [clang-tidy] Avoid C arrays check
Parents
rG789cc8170d15: [X86] Add -x86-experimental-vector-widening command lines to pmulh.ll
Branches
Unknown
Tags
Unknown