[PATCH] D40731: Integrate CHash into CLang

Christian Dietrich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 1 08:18:31 PST 2017


stettberger created this revision.
Herald added subscribers: cfe-commits, aprantl, mgorny.

The CHashVisitor can be used to determine a unique hash for a translation unit. The hash is stable across compiler invocations and if two translation units have the same hash, the resulting object file is semantically equal (code, data, etc. are equal; debug information may be different).


Repository:
  rC Clang

https://reviews.llvm.org/D40731

Files:
  include/clang/AST/AttrDataCollectors.td
  include/clang/AST/CHashVisitor.h
  include/clang/AST/CMakeLists.txt
  include/clang/AST/DeclDataCollectors.td
  include/clang/AST/StmtDataCollectors.td
  include/clang/AST/TypeDataCollectors.td
  unittests/AST/CHashTest.cpp
  unittests/AST/CMakeLists.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40731.125147.patch
Type: text/x-patch
Size: 30153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171201/619fd058/attachment-0001.bin>


More information about the cfe-commits mailing list