This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] [NFC] Move the code for dumping the program point to ProgramPoint
ClosedPublic

Authored by george.karpenkov on Sep 26 2018, 5:36 PM.

Diff Detail

Repository
rC Clang

Event Timeline

NoQ added a comment.Sep 26 2018, 5:41 PM

Yay.

clang/include/clang/Analysis/ProgramPoint.h
218–220 ↗(On Diff #167221)

Maybe retrieve Context from the ProgramPoint's LocationContext.

Most structures define a print method that receives a stream and newline/separator strings, and dump as a method that calls print with default parameters. I guess it's easier for debuggers to support, because default arguments are meh.

Also do we need some sort of LLVM_DUMP_METHOD here?

NoQ accepted this revision.Sep 26 2018, 6:41 PM

Yup, something like that.

This revision is now accepted and ready to land.Sep 26 2018, 6:41 PM
This revision was automatically updated to reflect the committed changes.