llvm-project/clang-tools-extra/clang-tidy
Jason Henline 481e6aaa45 [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

llvm-svn: 284992
2016-10-24 17:20:32 +00:00
..
boost [clang-tidy] boost-use-to-string arg expr location bugfix 2016-06-28 08:16:20 +00:00
cert [clang-tidy] Add cert-err09-cpp check alias. 2016-10-19 14:28:19 +00:00
cppcoreguidelines [clang-tidy] Don't use a SmallSetVector of an enum. 2016-10-21 20:13:39 +00:00
google [clang-tidy] Add a whitelist option in google-runtime-references. 2016-10-10 16:38:11 +00:00
llvm [clang-tidy] Cleaning up language options. 2016-09-24 02:13:45 +00:00
misc Remove 'misc-pointer-and-integral-operation' clang-tidy check. The only cases 2016-10-21 21:50:28 +00:00
modernize Use auto in for loop 2016-10-20 15:40:34 +00:00
mpi [clang-tidy] Cleaning up language options. 2016-09-24 02:13:45 +00:00
performance [clang-tidy] Inefficient string operation 2016-08-03 23:06:03 +00:00
plugin [clang-tidy] MPITypeMismatchCheck 2016-08-02 20:29:35 +00:00
readability [clang-tidy] Fix identifier naming in macro args. 2016-10-24 17:20:32 +00:00
tool [clang-tidy] Add doc for `explain-config` option. 2016-09-22 14:36:43 +00:00
utils Recommit "[ClangTidy] Add UsingInserter and NamespaceAliaser" 2016-10-17 08:33:59 +00:00
CMakeLists.txt [clang-tidy] Clean up code after applying replacements. 2016-10-17 17:25:02 +00:00
ClangTidy.cpp [clang-tidy] Clean up code after applying replacements. 2016-10-17 17:25:02 +00:00
ClangTidy.h [clang-tidy] misc-argument-comment non-strict mode 2016-08-04 14:54:54 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Clean up code after applying replacements. 2016-10-17 17:25:02 +00:00
ClangTidyDiagnosticConsumer.h Fix clang-tidy crash when a single fix is applied on multiple files. 2016-08-09 07:54:49 +00:00
ClangTidyModule.cpp Apply performance-unnecessary-value-param to clang-tidy. 2016-06-15 15:46:10 +00:00
ClangTidyModule.h Revert "Apply modernize-use-default to clang-tools-extra." 2015-10-20 21:45:52 +00:00
ClangTidyModuleRegistry.h Reapply r276973 "Adjust Registry interface to not require plugins to export a registry" 2016-08-05 11:01:08 +00:00
ClangTidyOptions.cpp [clang-tidy] Merge ExtraArgs(Before) instead of overriding them. 2016-08-23 14:48:29 +00:00
ClangTidyOptions.h [ClangTidy] Add an 'explain-checks' option to diagnose where each checks comes from. 2016-04-27 09:15:01 +00:00
add_new_check.py [clang-tidy] Remove redundant quote in add_new_check script 2016-05-30 15:42:08 +00:00
rename_check.py [clang-tidy] Python script for easy check rename 2015-10-11 07:58:34 +00:00