[PATCH] D31320: [analyzer] Teach CloneDetection about Qt Meta-Object Compiler
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 19 03:14:12 PDT 2017
teemperor added inline comments.
================
Comment at: cfe/trunk/include/clang/Analysis/CloneDetection.h:324
+struct AutoGeneratedCloneConstraint {
+ StringRef IgnoredFilesPattern;
----------------
xiangzhai wrote:
> v.g.vassilev wrote:
> > Shouldn't the name be more generic. What this essentially does is to filter out false positives according to a regex...
> At the very beginning, it is by regex match the filename, it is still very rough! but in future it is able to filter by looking for `QT_BEGIN_MOC_NAMESPACE` macro or `qt_meta_ prefix` function in the ASTContext? and there might be other auto-generated mechanism for different framework, such as Gtk and sort of open source GUI libraries. so perhaps `AutoGeneratedCloneConstraint` is better name, I am not good at naming, it is difficult to name my little kid :)
Yeah, maybe we should have named this FilenamePatternConstraint or something like that...
Repository:
rL LLVM
https://reviews.llvm.org/D31320
More information about the cfe-commits
mailing list