This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG589ddd7fe8e4: [clang][dataflow] ArrayRef'ize debugString() (authored by gribozavr).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130400/new/ https://reviews.llvm.org/D130400 Files: clang/include/clang/Analysis/FlowSensitive/DebugSupport.h clang/lib/Analysis/FlowSensitive/DebugSupport.cpp Index: clang/lib/Analysis/FlowSensitive/DebugSupport.cpp =================================================================== --- clang/lib/Analysis/FlowSensitive/DebugSupport.cpp +++ clang/lib/Analysis/FlowSensitive/DebugSupport.cpp @@ -82,7 +82,7 @@ /// Returns a string representation of a set of boolean `Constraints` and the /// `Result` of satisfiability checking on the `Constraints`. - std::string debugString(const std::vector<BoolValue *> &Constraints, + std::string debugString(ArrayRef<BoolValue *> &Constraints, const Solver::Result &Result) { auto Template = R"( Constraints @@ -185,8 +185,7 @@ } std::string -debugString(const std::vector<BoolValue *> &Constraints, - const Solver::Result &Result, +debugString(ArrayRef<BoolValue *> Constraints, const Solver::Result &Result, llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames) { return DebugStringGenerator(std::move(AtomNames)) .debugString(Constraints, Result); Index: clang/include/clang/Analysis/FlowSensitive/DebugSupport.h =================================================================== --- clang/include/clang/Analysis/FlowSensitive/DebugSupport.h +++ clang/include/clang/Analysis/FlowSensitive/DebugSupport.h @@ -46,7 +46,7 @@ /// /// Names assigned to atoms should not be repeated in `AtomNames`. std::string debugString( - const std::vector<BoolValue *> &Constraints, const Solver::Result &Result, + ArrayRef<BoolValue *> Constraints, const Solver::Result &Result, llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames = {{}}); inline std::string debugString( const llvm::DenseSet<BoolValue *> &Constraints,
Index: clang/lib/Analysis/FlowSensitive/DebugSupport.cpp =================================================================== --- clang/lib/Analysis/FlowSensitive/DebugSupport.cpp +++ clang/lib/Analysis/FlowSensitive/DebugSupport.cpp @@ -82,7 +82,7 @@ /// Returns a string representation of a set of boolean `Constraints` and the /// `Result` of satisfiability checking on the `Constraints`. - std::string debugString(const std::vector<BoolValue *> &Constraints, + std::string debugString(ArrayRef<BoolValue *> &Constraints, const Solver::Result &Result) { auto Template = R"( Constraints @@ -185,8 +185,7 @@ } std::string -debugString(const std::vector<BoolValue *> &Constraints, - const Solver::Result &Result, +debugString(ArrayRef<BoolValue *> Constraints, const Solver::Result &Result, llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames) { return DebugStringGenerator(std::move(AtomNames)) .debugString(Constraints, Result); Index: clang/include/clang/Analysis/FlowSensitive/DebugSupport.h =================================================================== --- clang/include/clang/Analysis/FlowSensitive/DebugSupport.h +++ clang/include/clang/Analysis/FlowSensitive/DebugSupport.h @@ -46,7 +46,7 @@ /// /// Names assigned to atoms should not be repeated in `AtomNames`. std::string debugString( - const std::vector<BoolValue *> &Constraints, const Solver::Result &Result, + ArrayRef<BoolValue *> Constraints, const Solver::Result &Result, llvm::DenseMap<const AtomicBoolValue *, std::string> AtomNames = {{}}); inline std::string debugString( const llvm::DenseSet<BoolValue *> &Constraints,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits