[PATCH] D120890: [clang][dataflow] Add a lattice to track source locations.
Yitzhak Mandelbaum via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 3 06:40:58 PST 2022
ymandel marked 5 inline comments as done.
ymandel added inline comments.
================
Comment at: clang/include/clang/Analysis/FlowSensitive/SourceLocationsLattice.h:56
+// Returns a string that represents the source locations of the lattice.
+std::string DebugString(const SourceLocationsLattice &Lattice,
+ const ASTContext &Context);
----------------
sgatev wrote:
> Can you please add tests for this too?
I'm not sure what I would test, since it (intentionally) has no guaranteed API. Do you have something particular in mind? I generally avoid testing things like DebugString because we don't want users to rely on them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120890/new/
https://reviews.llvm.org/D120890
More information about the cfe-commits
mailing list