mostly reformat

This commit is contained in:
Laurent Perron
2022-01-24 12:47:15 +01:00
parent 49e47a336d
commit 72cec58d22
3 changed files with 22 additions and 21 deletions

View File

@@ -20,7 +20,6 @@
#include "absl/memory/memory.h"
#include "absl/strings/match.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "ortools/base/commandlineflags.h"
#include "ortools/base/integral_types.h"
#include "ortools/base/timer.h"

View File

@@ -1,24 +1,24 @@
"""Helper macro to compile and test code samples."""
def code_sample_cc(name):
native.cc_binary(
name = name,
srcs = [name + ".cc"],
deps = [
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_binary(
name = name,
srcs = [name + ".cc"],
deps = [
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_test(
name = name + "_test",
size = "small",
srcs = [name + ".cc"],
deps = [
":" + name,
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)
native.cc_test(
name = name+"_test",
size = "small",
srcs = [name + ".cc"],
deps = [
":"+name,
"//ortools/base",
"//ortools/glop:lp_solver",
"//ortools/lp_data",
],
)

View File

@@ -681,6 +681,8 @@ extern std::function<int(GRBmodel *model, int i)> GRBgettuneresult;
extern std::function<int(GRBmodel *model, int i, char **logP)> GRBgettunelog;
extern std::function<int(GRBmodel *model, GRBmodel *ignore, GRBmodel *hint)> GRBtunemodeladv;
extern std::function<int(GRBmodel *model)> GRBsync;
} // namespace operations_research
#endif // OR_TOOLS_GUROBI_ENVIRONMENT_H_