[PATCH] D25450: [clang-tidy] Fix identifier naming in macro args.
Jason Henline via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 10 13:44:06 PDT 2016
jhen created this revision.
jhen added a reviewer: alexfh.
jhen added a subscriber: cfe-commits.
Herald added a subscriber: jlebar.
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);
https://reviews.llvm.org/D25450
Files:
clang-tidy/readability/IdentifierNamingCheck.cpp
test/clang-tidy/readability-identifier-naming.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25450.74171.patch
Type: text/x-patch
Size: 4681 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161010/631ebace/attachment.bin>
More information about the cfe-commits
mailing list