Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
matbesancon committed Apr 16, 2023
1 parent 9232171 commit e074e3a
Show file tree
Hide file tree
Showing 39 changed files with 51,948 additions and 6,860 deletions.
10 changes: 10 additions & 0 deletions .JuliaFormatter.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Configuration file for JuliaFormatter.jl
# For more information, see: https://domluna.github.io/JuliaFormatter.jl/stable/config/

always_for_in = true
always_use_return = false
margin = 80
remove_extra_newlines = true
separate_kwargs_with_semicolon = true
short_to_long_function_def = true
whitespace_in_kwargs = false
30 changes: 14 additions & 16 deletions gen/generate_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ else
(joinpath(SCIP_jll.artifact_dir, "include"), true)
end

const SCIP_TYPES_H = filter(readdir(joinpath(HEADER_BASE, "scip"), join=true)) do f
occursin("type", f) && endswith(f, ".h")
end
const SCIP_TYPES_H =
filter(readdir(joinpath(HEADER_BASE, "scip"); join=true)) do f
occursin("type", f) && endswith(f, ".h")
end
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/def.h"))
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/nlpi.h"))
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/scipdefplugins.h"))
Expand All @@ -21,24 +22,21 @@ if is_default
push!(SCIP_TYPES_H, joinpath(HEADER_BASE, "scip/config.h"))
end

const SCIP_PUB_H = filter(readdir(joinpath(HEADER_BASE, "scip"), join=true)) do f
occursin("pub", f) && endswith(f, ".h")
end
const SCIP_PUB_H =
filter(readdir(joinpath(HEADER_BASE, "scip"); join=true)) do f
occursin("pub", f) && endswith(f, ".h")
end

const SCIP_MEM_H = filter(readdir(joinpath(HEADER_BASE, "blockmemshell"), join=true)) do f
endswith(f, ".h")
end
const SCIP_MEM_H =
filter(readdir(joinpath(HEADER_BASE, "blockmemshell"); join=true)) do f
endswith(f, ".h")
end

const SCIP_LPI_H = filter(readdir(joinpath(HEADER_BASE, "lpi"), join=true)) do f
const SCIP_LPI_H = filter(readdir(joinpath(HEADER_BASE, "lpi"); join=true)) do f
endswith(f, ".h")
end

headers = append!(
SCIP_TYPES_H,
SCIP_PUB_H,
SCIP_MEM_H,
SCIP_LPI_H,
)
headers = append!(SCIP_TYPES_H, SCIP_PUB_H, SCIP_MEM_H, SCIP_LPI_H)

options = load_options(joinpath(@__DIR__, "generator.toml"))

Expand Down
Loading

0 comments on commit e074e3a

Please sign in to comment.