Skip to content

Commit deacc8f

Browse files
committed
Update to sol2 v2.20.6
1 parent dfc1bfc commit deacc8f

File tree

409 files changed

+386663
-14519
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+386663
-14519
lines changed

include/extractor/extraction_turn.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ struct ExtractionTurnLeg
3333
{
3434
}
3535

36-
const bool is_restricted;
37-
const bool is_motorway;
38-
const bool is_link;
39-
const int number_of_lanes;
40-
const int highway_turn_classification;
41-
const int access_turn_classification;
42-
const int speed;
43-
const RoadPriorityClass::Enum priority_class;
44-
const bool is_incoming;
45-
const bool is_outgoing;
36+
bool is_restricted;
37+
bool is_motorway;
38+
bool is_link;
39+
int number_of_lanes;
40+
int highway_turn_classification;
41+
int access_turn_classification;
42+
int speed;
43+
RoadPriorityClass::Enum priority_class;
44+
bool is_incoming;
45+
bool is_outgoing;
4646
};
4747

4848
struct ExtractionTurn

include/extractor/scripting_environment_lua.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <mutex>
1313
#include <string>
1414

15-
#include <sol2/sol.hpp>
15+
#include <sol.hpp>
1616

1717
namespace osrm
1818
{

src/extractor/scripting_environment_lua.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ void Sol2ScriptingEnvironment::InitContext(LuaScriptingContext &context)
259259
"version",
260260
&osmium::Way::version,
261261
"get_nodes",
262-
[](const osmium::Way &way) { return sol::as_table(way.nodes()); },
262+
[](const osmium::Way &way) { return sol::as_table(&way.nodes()); },
263263
"get_location_tag",
264264
[&context, &get_location_tag](const osmium::Way &way, const char *key) {
265265
// HEURISTIC: use a single node (last) of the way to localize the way

third_party/sol2/.clang-format

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# # # # sol2
2+
# The MIT License (MIT)
3+
#
4+
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
5+
#
6+
# Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
# this software and associated documentation files (the "Software"), to deal in
8+
# the Software without restriction, including without limitation the rights to
9+
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
# the Software, and to permit persons to whom the Software is furnished to do so,
11+
# subject to the following conditions:
12+
#
13+
# The above copyright notice and this permission notice shall be included in all
14+
# copies or substantial portions of the Software.
15+
#
16+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
23+
---
24+
BasedOnStyle: WebKit
25+
IndentWidth: 5
26+
TabWidth: 5
27+
ContinuationIndentWidth: 5
28+
UseTab: Always
29+
30+
# Namespaces
31+
NamespaceIndentation: All
32+
CompactNamespaces: true
33+
FixNamespaceComments: true
34+
35+
# Overall Alignment
36+
ColumnLimit: 0
37+
AlignAfterOpenBracket: DontAlign # uses ContinuationIndentWidth for this instead
38+
AccessModifierOffset: -5 # do not push public: or private: around
39+
#AlignConsecutiveAssignments: true # affects more than what's expected: do not use
40+
#AlignConsecutiveDeclarations: true # affects more than what's expected: do not use
41+
42+
# Type Alignment
43+
DerivePointerAlignment: false
44+
PointerAlignment: Left
45+
AlwaysBreakTemplateDeclarations: true
46+
AlwaysBreakBeforeMultilineStrings: true
47+
48+
# Comments
49+
AlignTrailingComments: true
50+
ReflowComments: true
51+
52+
# Macros
53+
AlignEscapedNewlines: Left
54+
#IndentPPDirectives: None
55+
56+
# Functions
57+
AllowShortFunctionsOnASingleLine: None
58+
AlwaysBreakAfterReturnType: None
59+
BreakConstructorInitializers: BeforeComma
60+
ConstructorInitializerIndentWidth: 0
61+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
62+
BinPackArguments: true
63+
BinPackParameters: true
64+
65+
# Classes
66+
BreakBeforeInheritanceComma: false
67+
68+
# Braces
69+
Cpp11BracedListStyle: false
70+
BreakBeforeBraces: Custom
71+
BraceWrapping:
72+
AfterEnum: false
73+
AfterStruct: false
74+
AfterControlStatement: false
75+
AfterClass: false
76+
AfterNamespace: false
77+
AfterStruct: false
78+
AfterUnion: false
79+
BeforeElse: true
80+
BeforeCatch: true
81+
IndentBraces: false
82+
SplitEmptyFunction: false
83+
SplitEmptyRecord: false
84+
SplitEmptyNamespace: true
85+
86+
# Control Statements
87+
AllowShortIfStatementsOnASingleLine: false
88+
AllowShortLoopsOnASingleLine: false
89+
AllowShortCaseLabelsOnASingleLine: false
90+
IndentCaseLabels: false
91+
92+
# Spaces
93+
SpaceAfterCStyleCast: false
94+
SpacesInCStyleCastParentheses: false
95+
SpaceAfterTemplateKeyword: true
96+
SpaceBeforeAssignmentOperators: true
97+
SpaceBeforeParens: ControlStatements
98+
SpaceInEmptyParentheses: false
99+
SpacesInAngles: false
100+
SpacesInParentheses: false
101+
SpacesInSquareBrackets: false
102+
MaxEmptyLinesToKeep: 3
103+
104+
# OCD
105+
SortUsingDeclarations: true
106+
SortIncludes: false
107+
108+
---
109+
Language: Cpp
110+
Standard: Cpp11

third_party/sol2/.dockerignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# # # # sol2
2+
# The MIT License (MIT)
3+
#
4+
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
5+
#
6+
# Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
# this software and associated documentation files (the "Software"), to deal in
8+
# the Software without restriction, including without limitation the rights to
9+
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
# the Software, and to permit persons to whom the Software is furnished to do so,
11+
# subject to the following conditions:
12+
#
13+
# The above copyright notice and this permission notice shall be included in all
14+
# copies or substantial portions of the Software.
15+
#
16+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
23+
# Ignore literally everything
24+
**
25+
26+
# Except the script directory
27+
!scripts/preparation*
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Read these guidelines. They are relatively simple and will allow me to help you better:
2+
3+
1. Produce a simple, short, compilable test case that reproduces your problem.
4+
2. Make a descriptive title that summarises the bug as a whole.
5+
3. Explain the bug in as much detail as you can in the body of the issue.
6+
4. Include Compiler/IDE (Visual Studio, XCode...), Build and Deployment System, Language (C++, Objective-C++), and any special defines you have set.
7+
8+
If you want to request a feature:
9+
10+
1. Produce any relevant imaginary code that illustrates what you would like or desired behavior.
11+
2. Include a description and title of what you would like.
12+
3. Annotate and describe the behavior through comments, asserts or just a small write up.
13+
14+
Thanks for helping sol grow!

third_party/sol2/.gitignore

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# # # # sol2
2+
# The MIT License (MIT)
3+
#
4+
# Copyright (c) 2013-2018 Rapptz, ThePhD, and contributors
5+
#
6+
# Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
# this software and associated documentation files (the "Software"), to deal in
8+
# the Software without restriction, including without limitation the rights to
9+
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
# the Software, and to permit persons to whom the Software is furnished to do so,
11+
# subject to the following conditions:
12+
#
13+
# The above copyright notice and this permission notice shall be included in all
14+
# copies or substantial portions of the Software.
15+
#
16+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22+
23+
# Python (Bytecode)
24+
*.pyc
25+
26+
# ninja files
27+
*.ninja
28+
29+
# Visual Studio
30+
*.props
31+
*.user
32+
.vs/
33+
Debug/
34+
Release/
35+
x64/
36+
x86/
37+
*.pyproj
38+
*.vcxproj
39+
*.vcxproj.filters
40+
*.tlog
41+
*.lastbuildstate
42+
*.idb
43+
*.sln
44+
*.gitattributes
45+
46+
# VSCode
47+
.vscode/
48+
49+
# CMake
50+
build/
51+
build-sol2/
52+
CMakeCache.txt
53+
CMakeFiles/
54+
55+
# Compiler outputs
56+
obj/*
57+
bin/*
58+
main.exe
59+
main.o
60+
lua53.dll
61+
lua-5.3.4.dll
62+
main.ilk
63+
main.pdb
64+
65+
# Dropbox interference
66+
.dropbox*
67+
68+
# QtCreator
69+
*.creator.user.*
70+
*.config
71+
*.creator
72+
*.files
73+
*.includes
74+
75+
# Scratchpad Files
76+
m.lua
77+
main.lua
78+
catch_mock.hpp
79+
main_aux.cpp
80+
main.hpp
81+
main2.cpp
82+
main.cpp
83+
84+
# Local Lua Testbeds
85+
lua-5.4.0-cxx/
86+
lua-5.4.0/
87+
lua-5.4.0-work1-cxx/
88+
lua-5.4.0-work1/
89+
lua-5.3.4-cxx/
90+
lua-5.3.4/
91+
lua-5.3.2/
92+
lua-5.3.1/
93+
lua-5.3.0/
94+
lua-5.2.4/
95+
lua-5.2.2/
96+
lua-5.2.3/
97+
lua-5.1.5/
98+
LuaJIT-2.1.0/
99+
luajit-2.0.5/
100+
luajit-2.0.3/
101+
include/
102+
liblua.a
103+
lib/liblua5.2.a
104+
105+
# Docs Artefacts
106+
docs/build/
107+
108+
# Sublime Text
109+
*.sublime-workspace
110+
*.sublime-project
111+
112+
113+
# Windows Crap
114+
desktop.ini
115+
*.db
116+
117+
# Miscellaneous
118+
external/
119+
scratch/
120+
.idea/
121+
cmake-build-debug/
122+
cmake-build-relwithdebinfo/
123+
cmake-build-release/
124+
/subprojects/*
125+
!/subprojects/*.wrap

third_party/sol2/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Catch"]
2+
path = Catch
3+
url = https://github.com/philsquared/Catch.git

third_party/sol2/.style.yapf

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[style]
2+
based_on_style = pep8
3+
use_tabs = true
4+
indent_width = 5
5+
6+
spaces_before_comment = 1
7+
spaces_around_power_operator = true
8+
space_between_ending_comma_and_closing_bracket = true
9+
10+
continuation_align_style = SPACE
11+
split_before_first_argument = false
12+
split_complex_comprehension = true
13+
dedent_closing_brackets = false
14+
coalesce_brackets = true
15+
align_closing_bracket_with_visual_indent = false

0 commit comments

Comments
 (0)