File tree Expand file tree Collapse file tree 6 files changed +5
-6
lines changed Expand file tree Collapse file tree 6 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ Checks: |
2121 clang-analyzer-*,
2222 google-*,
2323 modernize-*,
24- -modernize-use-nodiscard,
2524 -modernize-use-trailing-return-type,
2625
2726CheckOptions :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class ICEBERG_ARROW_EXPORT DemoArrow : public Table {
3030 public:
3131 DemoArrow () = default ;
3232 ~DemoArrow () override = default ;
33- std::string print () const override ;
33+ [[nodiscard]] std::string print () const override ;
3434};
3535
3636} // namespace iceberg::arrow
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ICEBERG_EXPORT DemoTable : public Table {
2828 DemoTable () = default ;
2929 ~DemoTable () override = default ;
3030
31- std::string print () const override ;
31+ [[nodiscard]] std::string print () const override ;
3232};
3333
3434} // namespace iceberg
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ namespace iceberg {
2828class ICEBERG_EXPORT Puffin {
2929 public:
3030 virtual ~Puffin () = default ;
31- virtual std::string print () const = 0;
31+ [[nodiscard]] virtual std::string print () const = 0;
3232};
3333
3434} // namespace iceberg
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class ICEBERG_PUFFIN_EXPORT DemoPuffin : public Puffin {
2828 public:
2929 DemoPuffin () = default ;
3030 ~DemoPuffin () override = default ;
31- std::string print () const override ;
31+ [[nodiscard]] std::string print () const override ;
3232};
3333
3434} // namespace iceberg::puffin
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ namespace iceberg {
2929class ICEBERG_EXPORT Table {
3030 public:
3131 virtual ~Table () = default ;
32- virtual std::string print () const = 0;
32+ [[nodiscard]] virtual std::string print () const = 0;
3333};
3434
3535} // namespace iceberg
You can’t perform that action at this time.
0 commit comments