srcML / srcSlice

Lightweight tool for slicing
34 stars 16 forks source link

Policy for full map #15

Closed cnewman closed 3 years ago

cnewman commented 7 years ago

Currently, we only have a policy that takes the slice of a function and reports it back to any listening policies at the end of that function. We need another policy that listens to FunctionSliceProfilePolicy and stores/unions data from each function into a large, unordered_map.

The map's type signature should look like unordered_map<std::string, SliceProfile>

People should be able to query the map for an identifier name and get the profile back without specifying line numbers or scope numbers or file.