[PATCH] D120890: [clang][dataflow] Add a lattice to track source locations.

Stanislav Gatev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 3 04:36:21 PST 2022


sgatev accepted this revision.
sgatev added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/include/clang/Analysis/FlowSensitive/SourceLocationsLattice.h:13
+
+#ifndef LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_SOURCELOCATIONS_LATTICE_H_
+#define LLVM_CLANG_ANALYSIS_FLOWSENSITIVE_SOURCELOCATIONS_LATTICE_H_
----------------
Remove the last `_` for consistency with the other headers.


================
Comment at: clang/include/clang/Analysis/FlowSensitive/SourceLocationsLattice.h:46
+
+  llvm::DenseSet<SourceLocation> &getSourceLocations() { return Locs; }
+  const llvm::DenseSet<SourceLocation> &getSourceLocations() const {
----------------
Add an empty line after this member to separate it from the next?


================
Comment at: clang/lib/Analysis/FlowSensitive/SourceLocationsLattice.cpp:45
+  std::string result;
+  llvm::raw_string_ostream Os(result);
+  llvm::interleaveComma(Locations, Os);
----------------
Call this `OS`? It seems to be common.


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