update include guards

This commit is contained in:
Corentin Le Molgat
2025-11-05 11:34:49 +01:00
parent 4793e1acb4
commit b4b226801b
571 changed files with 1713 additions and 1713 deletions

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_GLOP_UTILS_H_
#define OR_TOOLS_LINEAR_SOLVER_GLOP_UTILS_H_
#ifndef ORTOOLS_LINEAR_SOLVER_GLOP_UTILS_H_
#define ORTOOLS_LINEAR_SOLVER_GLOP_UTILS_H_
#include "ortools/linear_solver/linear_solver.h"
#include "ortools/lp_data/lp_types.h"
@@ -29,4 +29,4 @@ glop::ConstraintStatus MPSolverToGlopConstraintStatus(MPSolver::BasisStatus s);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_GLOP_UTILS_H_
#endif // ORTOOLS_LINEAR_SOLVER_GLOP_UTILS_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_
#define OR_TOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_
#ifndef ORTOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_
#define ORTOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_
#include <string>
@@ -37,4 +37,4 @@ std::string GurobiParamInfoForLogging(GRBenv* grb,
bool one_liner_output = false);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_
#endif // ORTOOLS_LINEAR_SOLVER_GUROBI_UTIL_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_
#define OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_
#ifndef ORTOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_
#define ORTOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_
/**
* \file
@@ -222,4 +222,4 @@ LinearRange operator>=(const LinearExpr& lhs, const LinearExpr& rhs);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_
#endif // ORTOOLS_LINEAR_SOLVER_LINEAR_EXPR_H_

View File

@@ -131,8 +131,8 @@
* depends on the modification applied and on the underlying solver.
*/
#ifndef OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_
#include <atomic>
#include <cstdint>
@@ -1924,4 +1924,4 @@ class MPSolverInterface {
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_
#define OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_
#ifndef ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_
#define ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_
#include <cstdint>
#include <string>
@@ -175,4 +175,4 @@ class MPCallbackList : public MPCallback {
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_
#endif // ORTOOLS_LINEAR_SOLVER_LINEAR_SOLVER_CALLBACK_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
#define OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
#define ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
#include <string>
@@ -109,4 +109,4 @@ absl::Status WriteModelToMpsFile(
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
#endif // ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_
#define OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_
#define ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_
#include <string>
@@ -36,4 +36,4 @@ inline std::string ExportModelAsMpsFormatReturnString(
}
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_
#endif // ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_SWIG_HELPER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_
#define OR_TOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_
#ifndef ORTOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_
#define ORTOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_
#include <optional>
#include <string>
@@ -95,4 +95,4 @@ void ApplyVerifiedMPModelDelta(const MPModelDeltaProto& delta,
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_
#endif // ORTOOLS_LINEAR_SOLVER_MODEL_VALIDATOR_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_
#include <atomic>
#include <functional>
@@ -54,4 +54,4 @@ std::string GlopSolverVersion();
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GLOP_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_
#include "absl/status/status.h"
#include "absl/status/statusor.h"
@@ -49,4 +49,4 @@ absl::StatusOr<MPSolutionResponse> GurobiSolveProto(
absl::Status SetSolverSpecificParameters(absl::string_view parameters,
GRBenv* gurobi);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_GUROBI_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_
#include <cstdint>
@@ -35,4 +35,4 @@ absl::StatusOr<MPSolutionResponse> HighsSolveProto(
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_HIGHS_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_
#include <atomic>
@@ -47,4 +47,4 @@ absl::StatusOr<MPSolutionResponse> PdlpSolveProto(
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PDLP_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_
#include "ortools/glop/preprocessor.h"
#include "ortools/lp_data/lp_data.h"
@@ -195,4 +195,4 @@ class ReduceCostOverExclusiveOrConstraintPreprocessor
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PREPROCESSOR_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_
#include <string>
#include <type_traits>
@@ -83,4 +83,4 @@ std::string EncodeParametersAsString(const P& parameters) {
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_PROTO_UTILS_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_
#include <atomic>
#include <functional>
@@ -60,4 +60,4 @@ std::string SatSolverVersion();
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_
#include <memory>
#include <vector>
@@ -40,4 +40,4 @@ glop::ProblemStatus ApplyMipPresolveSteps(
SolverLogger* logger);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SAT_SOLVER_UTILS_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_
#include <string>
@@ -27,4 +27,4 @@ absl::Status LegacyScipSetSolverSpecificParameters(absl::string_view parameters,
SCIP* scip);
}
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PARAMS_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_
#define OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_
#define ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_
#include <string>
@@ -34,4 +34,4 @@ std::string FindErrorInMPModelForScip(const MPModelProto& model, SCIP* scip);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_
#endif // ORTOOLS_LINEAR_SOLVER_PROTO_SOLVER_SCIP_PROTO_SOLVER_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_
#define OR_TOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_
#ifndef ORTOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_
#define ORTOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_
#include <memory>
#include <vector>
@@ -136,4 +136,4 @@ class CapacityPlanningILPH {
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_
#endif // ORTOOLS_LINEAR_SOLVER_SAMPLES_NETWORK_DESIGN_ILPH_H_

View File

@@ -17,8 +17,8 @@
// mp_callback.h should be sufficient (in fact, SCIP's mp_callback.h
// implementation is built on top of this).
#ifndef OR_TOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_
#define OR_TOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_
#ifndef ORTOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_
#define ORTOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_
#include <cstdint>
#include <memory>
@@ -271,4 +271,4 @@ void AddCallbackConstraint(SCIP* scip,
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_
#endif // ORTOOLS_LINEAR_SOLVER_SCIP_CALLBACK_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
#define OR_TOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
#ifndef ORTOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
#define ORTOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
#include "absl/status/status.h"
#include "absl/strings/str_format.h"
@@ -40,4 +40,4 @@ inline absl::Status ScipCodeToUtilStatus(/*SCIP_Retcode*/ int retcode,
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_
#endif // ORTOOLS_LINEAR_SOLVER_SCIP_HELPER_MACROS_H_

View File

@@ -15,8 +15,8 @@
//
// See linear_solver.proto for further documentation.
#ifndef OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
#define OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
#ifndef ORTOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
#define ORTOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
#include <string>
@@ -52,4 +52,4 @@ std::string MPModelRequestLoggingInfo(const MPModelRequest& request);
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_
#endif // ORTOOLS_LINEAR_SOLVER_SOLVE_MP_MODEL_H_

View File

@@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef OR_TOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_
#define OR_TOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_
#ifndef ORTOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_
#define ORTOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_
#include <algorithm>
#include <atomic>
@@ -500,4 +500,4 @@ class ModelSolverHelper {
} // namespace mb
} // namespace operations_research
#endif // OR_TOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_
#endif // ORTOOLS_LINEAR_SOLVER_WRAPPERS_MODEL_BUILDER_HELPER_H_