summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
diff options
context:
space:
mode:
authorArtem Dergachev <artem.dergachev@gmail.com>2017-04-05 14:17:36 +0000
committerArtem Dergachev <artem.dergachev@gmail.com>2017-04-05 14:17:36 +0000
commitf8b4fc38fdfe6adcd0ea15225e37976757490f2c (patch)
treea38ff4d24997f45aabc3bbf5f8a25394463ba8fe /clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
parenta16ab5aee5264a10c651db1804f84ded7a5828ea (diff)
downloadbcm5719-llvm-f8b4fc38fdfe6adcd0ea15225e37976757490f2c.tar.gz
bcm5719-llvm-f8b4fc38fdfe6adcd0ea15225e37976757490f2c.zip
[analyzer] Add a modular constraint system to the CloneDetector
A big part of the clone detection code is functionality for filtering clones and clone groups based on different criteria. So far this filtering process was hardcoded into the CloneDetector class, which made it hard to understand and, ultimately, to extend. This patch splits the CloneDetector's logic into a sequence of reusable constraints that are used for filtering clone groups. These constraints can be turned on and off and reodreder at will, and new constraints are easy to implement if necessary. Unit tests are added for the new constraint interface. This is a refactoring patch - no functional change intended. Patch by Raphael Isemann! Differential Revision: https://reviews.llvm.org/D23418 llvm-svn: 299544
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud