Skip to content

Commit

Permalink
Usages of fmt::join made compatible with fmt v11 (RobotLocomotion#21856)
Browse files Browse the repository at this point in the history
For v11, fmt moved the "range and iterator overloads" of fmt::join into the
fmt/ranges.h header file. This mindlessly adds that header to all of the
compilation units that make use of fmt::join to offer v10->v11
compatibility.
  • Loading branch information
SeanCurtis-TRI authored Aug 28, 2024
1 parent 777323d commit 35e6737
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/yaml/test/yaml_doxygen_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <fstream>
#include <sstream>

#include <fmt/ranges.h>
#include <gtest/gtest.h>

#include "drake/common/find_resource.h"
Expand Down
1 change: 1 addition & 0 deletions common/yaml/yaml_read_archive.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/ranges.h>
#include <yaml-cpp/yaml.h>

#include "drake/common/nice_type_name.h"
Expand Down
1 change: 1 addition & 0 deletions geometry/geometry_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <utility>

#include <fmt/format.h>
#include <fmt/ranges.h>

#include "drake/common/autodiff.h"
#include "drake/common/default_scalars.h"
Expand Down
1 change: 1 addition & 0 deletions geometry/meshcat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <App.h>
#include <common_robotics_utilities/base64_helpers.hpp>
#include <fmt/format.h>
#include <fmt/ranges.h>
#include <msgpack.hpp>

#include "drake/common/drake_export.h"
Expand Down
1 change: 1 addition & 0 deletions geometry/optimization/vpolytope.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <string>

#include <fmt/format.h>
#include <fmt/ranges.h>
#include <libqhullcpp/Qhull.h>
#include <libqhullcpp/QhullVertexSet.h>

Expand Down
1 change: 1 addition & 0 deletions geometry/render/render_material.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vector>

#include <fmt/format.h>
#include <fmt/ranges.h>

#include "drake/common/drake_assert.h"
#include "drake/common/fmt_eigen.h"
Expand Down
1 change: 1 addition & 0 deletions geometry/render_gltf_client/internal_http_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <vector>

#include <fmt/format.h>
#include <fmt/ranges.h>

namespace drake {
namespace geometry {
Expand Down
2 changes: 2 additions & 0 deletions multibody/plant/internal_geometry_names.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#include <stdexcept>

#include <fmt/ranges.h>

#include "drake/common/default_scalars.h"

namespace drake {
Expand Down
2 changes: 2 additions & 0 deletions multibody/plant/multibody_plant.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <stdexcept>
#include <vector>

#include <fmt/ranges.h>

#include "drake/common/drake_throw.h"
#include "drake/common/ssize.h"
#include "drake/common/text_logging.h"
Expand Down
2 changes: 2 additions & 0 deletions multibody/tree/multibody_tree.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <unordered_set>
#include <utility>

#include <fmt/ranges.h>

#include "drake/common/drake_assert.h"
#include "drake/common/drake_throw.h"
#include "drake/common/eigen_types.h"
Expand Down
1 change: 1 addition & 0 deletions solvers/clarabel_solver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <Clarabel>
#include <Eigen/Eigen>
#include <fmt/ranges.h>

#include "drake/common/fmt_eigen.h"
#include "drake/common/name_value.h"
Expand Down
2 changes: 2 additions & 0 deletions systems/framework/diagram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <stdexcept>
#include <unordered_set>

#include <fmt/ranges.h>

#include "drake/common/drake_assert.h"
#include "drake/common/string_unordered_set.h"
#include "drake/common/text_logging.h"
Expand Down
1 change: 1 addition & 0 deletions systems/framework/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <vector>

#include <fmt/format.h>
#include <fmt/ranges.h>

#include "drake/common/unused.h"
#include "drake/systems/framework/system_visitor.h"
Expand Down
1 change: 1 addition & 0 deletions systems/framework/system_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <unordered_set>

#include <fmt/format.h>
#include <fmt/ranges.h>

#include "drake/common/hash.h"
#include "drake/common/unused.h"
Expand Down
1 change: 1 addition & 0 deletions systems/framework/test/diagram_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "drake/systems/framework/diagram.h"

#include <Eigen/Dense>
#include <fmt/ranges.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>

Expand Down
1 change: 1 addition & 0 deletions systems/lcm/test/lcm_system_graphviz_test.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "drake/systems/lcm/lcm_system_graphviz.h"

#include "absl/strings/str_split.h"
#include <fmt/ranges.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>

Expand Down

0 comments on commit 35e6737

Please sign in to comment.