This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Generate and use stable identifiers for LocationContext
ClosedPublic

Authored by george.karpenkov on Sep 7 2018, 5:19 PM.

Details

Summary

Those are not created in the allocator.
Since they are created fairly rarely, a counter overhead should not affect the memory consumption.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ added inline comments.Sep 13 2018, 5:35 PM
clang/include/clang/Analysis/AnalysisDeclContext.h
234 ↗(On Diff #164552)

This means that for every new analysis the counter will continue rather than reset to 0.

Maybe store the counter in the manager as a non-static field?

clang/include/clang/Analysis/AnalysisDeclContext.h
234 ↗(On Diff #164552)

OK

NoQ accepted this revision.Sep 14 2018, 5:38 PM

Yay!

This revision is now accepted and ready to land.Sep 14 2018, 5:38 PM
This revision was automatically updated to reflect the committed changes.