HomePhabricator

[Parse] Make -Wgcc-compat complain about for loop inits in C89

Authored by george.burgess.iv on Jun 28 2018, 2:36 PM.

Description

[Parse] Make -Wgcc-compat complain about for loop inits in C89

While clang allows declarations in for loop init statements in c89 and
gnu89, gcc does not. So, we should probably warn if users care about gcc
compatibility.

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

llvm-svn: 335927