[PATCH] D40781: [DataCollection] Allow choosing between collection categories

Johannes Altmanninger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 4 05:28:57 PST 2017


johannes created this revision.
Herald added 1 blocking reviewer(s): teemperor.
Herald added a subscriber: ilya-biryukov.

This adds a list of collection categories to
ClangDataCollectorsEmitter.cpp, in an aim to eventually unify the
various AST hashing mechanisms (each one will get its own category).

In the various *DataCollectors.td files we can specify for each AST node
a way to collect data specific to a collection category. Clients can
then define COLLECT_FROM_* to collect data as defined in this category.


https://reviews.llvm.org/D40781

Files:
  include/clang/AST/StmtDataCollectors.td
  lib/Analysis/CloneDetection.cpp
  unittests/AST/DataCollectionTest.cpp
  utils/TableGen/ClangDataCollectorsEmitter.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40781.125312.patch
Type: text/x-patch
Size: 9952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171204/79f429ba/attachment-0001.bin>


More information about the cfe-commits mailing list