diff options
author | Alexander Kornienko <alexfh@google.com> | 2015-09-28 08:59:12 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2015-09-28 08:59:12 +0000 |
commit | 3d77768e2a8994a82e9ae7df89c8bf967685f755 (patch) | |
tree | 60b8cc9eae01ed613fc466b33d040fd191edb011 /polly/lib/Support/ScopHelper.cpp | |
parent | 501e6cd2839aa6ecf79500e6abf8c468de632417 (diff) | |
download | bcm5719-llvm-3d77768e2a8994a82e9ae7df89c8bf967685f755.tar.gz bcm5719-llvm-3d77768e2a8994a82e9ae7df89c8bf967685f755.zip |
[clang-tidy] Code factorization and cleanup in IdentifierNamingCheck
This is to level the ground a little bit, in preparation for the changes in http://reviews.llvm.org/D13081.
Code factorization replaces all insertions to NamingCheckFailures map with a unique addUsage function that does the job.
There is also no more difference between the declaration and the references to a given identifier, both cases are treated as ranges in the Usage vector. There is also a check to avoid duplicated ranges to be inserted, which sometimes triggered erroneous replacements.
References can now also be added before the declaration of the identifier is actually found; this looks to be the case for example when a templated class uses its parameters to specialize its templated base class.
Patch by Beren Minor!
Differential revision: http://reviews.llvm.org/D13079
llvm-svn: 248700
Diffstat (limited to 'polly/lib/Support/ScopHelper.cpp')
0 files changed, 0 insertions, 0 deletions