HomePhabricator

[clang-tidy] Fix identifier naming in macro args.

Description

[clang-tidy] Fix identifier naming in macro args.

Summary:
clang-tidy should fix identifier naming even when the identifier is
referenced inside a macro expansion, provided that the identifier enters
the macro expansion completely within a macro argument.

For example, this will allow fixes to the naming of the identifier
'global' when it is declared and used as follows:

int global;
#define USE_IN_MACRO(m) auto use_##m = m
USE_IN_MACRO(global);

Reviewers: alexfh

Subscribers: jlebar, cfe-commits

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

Details

Committed
jhenOct 24 2016, 10:20 AM
Differential Revision
D25450: [clang-tidy] Fix identifier naming in macro args.
Parents
rL284991: Removed FIXME from include ordering comment
Branches
Unknown
Tags
Unknown