fix go stuf format

This commit is contained in:
Corentin Le Molgat
2024-09-16 17:35:36 +02:00
parent 05c3db4d63
commit 814b638c79
3 changed files with 60 additions and 47 deletions

View File

@@ -1,3 +1,16 @@
# Copyright 2010-2024 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_gazelle//:deps.bzl", "go_repository")
def go_dependencies():

4
go.mod
View File

@@ -3,6 +3,6 @@ module github.com/google/or-tools
go 1.22.2
require (
github.com/golang/glog v1.2.2
google.golang.org/protobuf v1.34.2
github.com/golang/glog v1.2.2
google.golang.org/protobuf v1.34.2
)

View File

@@ -1,11 +1,11 @@
{
"folders": [
{
"path": "."
}
],
"settings": {
"files.associations": {
"folders": [
{
"path": "."
}
],
"settings": {
"files.associations": {
"scoped_allocator": "cpp",
"*.inc": "cpp",
"vector": "cpp",
@@ -96,49 +96,49 @@
"slist": "cpp",
"regex": "cpp"
},
"C_Cpp.clang_format_fallbackStyle": "Google",
"C_Cpp.default.includePath": [
"${workspaceRoot}",
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/install/include",
],
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.defines": [
"USE_BOP",
"USE_GLOP",
"USE_CLP",
"USE_CBC",
"USE_PDLP",
"USE_SCIP"
],
"C_Cpp.clang_format_style": "Google",
"python.formatting.provider": "yapf",
"python.pythonPath": "python3",
"python.autoComplete.extraPaths": [
"${workspaceRoot}",
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/sources/protobuf-3.6.1/python",
],
"[cpp]": {
"editor.tabSize": 2,
},
"[csharp]": {
"editor.tabSize": 2,
},
"[java]": {
"editor.tabSize": 2,
},
"[python]": {
"editor.tabSize": 4,
"C_Cpp.clang_format_fallbackStyle": "Google",
"C_Cpp.default.includePath": [
"${workspaceRoot}",
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/install/include",
],
"C_Cpp.default.cppStandard": "c++20",
"C_Cpp.default.cStandard": "c11",
"C_Cpp.default.defines": [
"USE_BOP",
"USE_GLOP",
"USE_CLP",
"USE_CBC",
"USE_PDLP",
"USE_SCIP"
],
"C_Cpp.clang_format_style": "Google",
"python.formatting.provider": "yapf",
"python.pythonPath": "python3",
"python.autoComplete.extraPaths": [
"${workspaceRoot}",
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/sources/protobuf-3.6.1/python",
],
"[cpp]": {
"editor.tabSize": 2,
},
"[csharp]": {
"editor.tabSize": 2,
},
"[java]": {
"editor.tabSize": 2,
},
"[python]": {
"editor.tabSize": 4,
},
"java.configuration.updateBuildConfiguration": "interactive",
"maven.view": "hierarchical",
"git.ignoreLimitWarning": true,
"python.analysis.extraPaths": [
"${workspaceRoot}",
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/sources/protobuf-3.6.1/python"
"${workspaceRoot}/ortools/gen",
"${workspaceRoot}/dependencies/sources/protobuf-3.6.1/python"
],
}
}
}