There are many "dumping" actions available from the compiler: Clang dumps AST, Clang static analyzer dumps generated nodes in the "exploded graph" it generates.
However, in many of those dumps raw pointer values are printed for the objects of interest, which can considerably complicate debugging due to those values being non-reproducible.
This patch adds a method for converting a pointer generated through an allocator to a deterministic (up to an architecture) long, which can make the debugging experience much more pleasant.
(E.g. compare hunting for a value "0xa9273f732" which changes every run to hunting for "23432").
Discussion started at http://lists.llvm.org/pipermail/cfe-dev/2018-August/059178.html
Code in collaboration with @NoQ