Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
TendTo committed Feb 21, 2024
1 parent fc33769 commit a742824
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
set noparent
linelength=120
filter=-build/header_guard
filter=-whitespace/comments
filter=-build/include_subdir
filter=-readability/todo
filter=-build/c++11
Expand Down
2 changes: 1 addition & 1 deletion dlinear/libs/gmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ mpz_class ceil(const mpq_class &val) {
}
}

} // namespace dlinear::gmp
} // namespace dlinear::gmp
1 change: 1 addition & 0 deletions dlinear/solver/DeltaSoplexTheorySolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ void DeltaSoplexTheorySolver::AddLiteral(const Literal &lit) {
SetSPXVarCoeff(coeffs, get_variable(map.begin()->first), get_constant_in_multiplication(expr));
} else if (is_addition(expr)) {
const std::map<Expression, mpq_class> &map = get_expr_to_coeff_map_in_addition(expr);
coeffs.setMax(static_cast<int>(map.size()));
for (const auto &pair : map) {
if (!is_variable(pair.first)) {
DLINEAR_RUNTIME_ERROR_FMT("Expression {} not supported", expr);
Expand Down
2 changes: 2 additions & 0 deletions dlinear/solver/SolverGuard.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* used.
* When the guard is destroyed by the solver's destructor, the global state is cleaned up.
*/
#pragma once

#include "dlinear/util/Config.h"

namespace dlinear {
Expand Down
1 change: 1 addition & 0 deletions dlinear/symbolic/IfThenElseEliminator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include "IfThenElseEliminator.h"

#include <algorithm>
#include <set>
#include <string>

Expand Down
4 changes: 2 additions & 2 deletions dlinear/util/ArgParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ class ArgParser {
* Version of the program.
* @return version of the program
*/
[[nodiscard]] static std::string version() ;
[[nodiscard]] static std::string version();
/**
* Status of the repository.
* @return status of the repository
*/
[[nodiscard]] static std::string repositoryStatus() ;
[[nodiscard]] static std::string repositoryStatus();
/**
* Complete prompt to print on the console.
* @return complete prompt
Expand Down
2 changes: 1 addition & 1 deletion dlinear/util/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ std::shared_ptr<spdlog::logger> get_logger(LoggerType logger_type) {
return logger;
}

} // namespace dlinear
} // namespace dlinear

#endif

0 comments on commit a742824

Please sign in to comment.