[PATCH] D82921: Removed a RecursiveASTVisitor feature to visit operator kinds with different methods
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 16:50:38 PDT 2020
gribozavr created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
gribozavr2 added reviewers: rsmith, sammccall, ymandel, aaron.ballman.
gribozavr updated this revision to Diff 274643.
gribozavr added a comment.
Removed obsolete comments.
This feature was only used in two places, but contributed a non-trivial
amount to the complexity of RecursiveASTVisitor, and was buggy (see my
recent patches where I was fixing the bugs that I noticed). I don't
think the convenience benefit of this feature is worth the complexity.
This change reduces the size of the `clang` binary by 38 KB (0.2%) in
release mode, and by 7 MB (0.3%) in debug mode. The `clang-tidy` binary
is reduced by 205 KB (0.3%) in release mode, and by 5 MB (0.4%) in debug
mode. I don't think these code size improvements are significant enough
to justify this change on its own (for me, the primary motivation is
reducing code complexity), but they I think are a side-effect.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82921
Files:
clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.cpp
clang-tools-extra/clang-tidy/modernize/LoopConvertUtils.h
clang/include/clang/AST/RecursiveASTVisitor.h
clang/lib/ARCMigrate/TransProperties.cpp
clang/unittests/Tooling/RecursiveASTVisitorTests/Callbacks.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82921.274643.patch
Type: text/x-patch
Size: 47912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200630/ded27866/attachment-0001.bin>
More information about the cfe-commits
mailing list