Skip to content

Commit b915f3e

Browse files
committed
3rdparty/expat: Updated expat to version 2.8.2
1 parent b1da4a1 commit b915f3e

131 files changed

Lines changed: 10053 additions & 63250 deletions

File tree

Some content is hidden

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

3rdparty/expat/.clang-format

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# __ __ _
2+
# ___\ \/ /_ __ __ _| |_
3+
# / _ \\ /| '_ \ / _` | __|
4+
# | __// \| |_) | (_| | |_
5+
# \___/_/\_\ .__/ \__,_|\__|
6+
# |_| XML parser
7+
#
8+
# Copyright (c) 2019 Sebastian Pipping <sebastian@pipping.org>
9+
# Licensed under the MIT license:
10+
#
11+
# Permission is hereby granted, free of charge, to any person obtaining
12+
# a copy of this software and associated documentation files (the
13+
# "Software"), to deal in the Software without restriction, including
14+
# without limitation the rights to use, copy, modify, merge, publish,
15+
# distribute, sublicense, and/or sell copies of the Software, and to permit
16+
# persons to whom the Software is furnished to do so, subject to the
17+
# following conditions:
18+
#
19+
# The above copyright notice and this permission notice shall be included
20+
# in all copies or substantial portions of the Software.
21+
#
22+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
25+
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
26+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
27+
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
28+
# USE OR OTHER DEALINGS IN THE SOFTWARE.
29+
30+
---
31+
Language: Cpp
32+
# BasedOnStyle: LLVM
33+
AccessModifierOffset: -2
34+
AlignAfterOpenBracket: Align
35+
# AlignConsecutiveMacros: false # TODO restore
36+
AlignConsecutiveAssignments: false
37+
AlignConsecutiveDeclarations: false
38+
AlignEscapedNewlines: Right
39+
AlignOperands: true
40+
AlignTrailingComments: true
41+
AllowAllArgumentsOnNextLine: true
42+
AllowAllConstructorInitializersOnNextLine: true
43+
AllowAllParametersOfDeclarationOnNextLine: true
44+
AllowShortBlocksOnASingleLine: false
45+
AllowShortCaseLabelsOnASingleLine: false
46+
AllowShortFunctionsOnASingleLine: InlineOnly
47+
AllowShortLambdasOnASingleLine: All
48+
AllowShortIfStatementsOnASingleLine: Never
49+
AllowShortLoopsOnASingleLine: false
50+
AlwaysBreakAfterDefinitionReturnType: None
51+
AlwaysBreakAfterReturnType: AllDefinitions
52+
AlwaysBreakBeforeMultilineStrings: false
53+
AlwaysBreakTemplateDeclarations: MultiLine
54+
BinPackArguments: true
55+
BinPackParameters: true
56+
BraceWrapping:
57+
AfterCaseLabel: false
58+
AfterClass: false
59+
AfterControlStatement: false
60+
AfterEnum: false
61+
AfterFunction: false
62+
AfterNamespace: false
63+
AfterObjCDeclaration: false
64+
AfterStruct: false
65+
AfterUnion: false
66+
AfterExternBlock: false
67+
BeforeCatch: false
68+
BeforeElse: false
69+
IndentBraces: false
70+
SplitEmptyFunction: true
71+
SplitEmptyRecord: true
72+
SplitEmptyNamespace: true
73+
BreakBeforeBinaryOperators: All
74+
BreakBeforeBraces: Attach
75+
BreakBeforeInheritanceComma: false
76+
BreakInheritanceList: BeforeColon
77+
BreakBeforeTernaryOperators: true
78+
BreakConstructorInitializersBeforeComma: false
79+
BreakConstructorInitializers: BeforeColon
80+
BreakAfterJavaFieldAnnotations: false
81+
BreakStringLiterals: false
82+
ColumnLimit: 80
83+
CommentPragmas: '^ IWYU pragma:'
84+
CompactNamespaces: false
85+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
86+
ConstructorInitializerIndentWidth: 4
87+
ContinuationIndentWidth: 4
88+
Cpp11BracedListStyle: true
89+
DerivePointerAlignment: false
90+
DisableFormat: false
91+
ExperimentalAutoDetectBinPacking: false
92+
FixNamespaceComments: true
93+
ForEachMacros:
94+
- foreach
95+
- Q_FOREACH
96+
- BOOST_FOREACH
97+
IncludeBlocks: Preserve
98+
IncludeCategories:
99+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
100+
Priority: 2
101+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
102+
Priority: 3
103+
- Regex: '.*'
104+
Priority: 1
105+
IncludeIsMainRegex: '(Test)?$'
106+
IndentCaseLabels: false
107+
IndentPPDirectives: AfterHash
108+
IndentWidth: 2
109+
IndentWrappedFunctionNames: false
110+
JavaScriptQuotes: Leave
111+
JavaScriptWrapImports: true
112+
KeepEmptyLinesAtTheStartOfBlocks: false
113+
MacroBlockBegin: ''
114+
MacroBlockEnd: ''
115+
MaxEmptyLinesToKeep: 1
116+
NamespaceIndentation: None
117+
ObjCBinPackProtocolList: Auto
118+
ObjCBlockIndentWidth: 2
119+
ObjCSpaceAfterProperty: false
120+
ObjCSpaceBeforeProtocolList: true
121+
PenaltyBreakAssignment: 2
122+
PenaltyBreakBeforeFirstCallParameter: 19
123+
PenaltyBreakComment: 300
124+
PenaltyBreakFirstLessLess: 120
125+
PenaltyBreakString: 1000
126+
PenaltyBreakTemplateDeclaration: 10
127+
PenaltyExcessCharacter: 1000000
128+
PenaltyReturnTypeOnItsOwnLine: 60
129+
PointerAlignment: Right
130+
ReflowComments: true
131+
SortIncludes: false
132+
SortUsingDeclarations: false
133+
SpaceAfterCStyleCast: false
134+
SpaceAfterLogicalNot: true
135+
SpaceAfterTemplateKeyword: true
136+
SpaceBeforeAssignmentOperators: true
137+
SpaceBeforeCpp11BracedList: false
138+
SpaceBeforeCtorInitializerColon: true
139+
SpaceBeforeInheritanceColon: true
140+
SpaceBeforeParens: ControlStatements
141+
SpaceBeforeRangeBasedForLoopColon: true
142+
SpaceInEmptyParentheses: false
143+
SpacesBeforeTrailingComments: 1
144+
SpacesInAngles: false
145+
SpacesInContainerLiterals: false
146+
SpacesInCStyleCastParentheses: false
147+
SpacesInParentheses: false
148+
SpacesInSquareBrackets: false
149+
Standard: Cpp03
150+
StatementMacros:
151+
- Q_UNUSED
152+
- QT_REQUIRE_VERSION
153+
TabWidth: 8
154+
UseTab: Never
155+
...
156+

3rdparty/expat/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/autom4te.cache/
2+
/cmake-build-debug/
3+
/CPackConfig.cmake
4+
/CPackSourceConfig.cmake
5+
CMakeFiles/
6+
Testing/
7+
aclocal.m4
8+
CMakeCache.txt
9+
cmake_install.cmake
10+
CTestTestfile.cmake
11+
install_manifest.txt
12+
Makefile
13+
.deps
14+
Makefile.in
15+
.libs
16+
*.la
17+
configure
18+
config.cache
19+
config.log
20+
config.status
21+
expat_config.h.in
22+
expat_config.h
23+
libtool
24+
expat.ncb
25+
expat.opt
26+
.project
27+
expat.pc
28+
*.gcda
29+
*.gcno
30+
*.gcov
31+
*.nccout
32+
*.expand
33+
/callgraph.svg
34+
/libexpat.so.*
35+
/run.sh
36+
build__R*
37+
coverage__R*
38+
source__R*
39+
/expat-*.tar.*
40+
/stamp-h1
41+
/libexpat*.dll
42+
/changelog
43+
*~

3rdparty/expat/CMake.README

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
The cmake based buildsystem for expat works on Windows (cygwin, mingw, Visual
44
Studio) and should work on all other platform cmake supports.
55

6-
Assuming ~/expat-2.7.1 is the source directory of expat, add a subdirectory
6+
Assuming ~/expat-2.8.2 is the source directory of expat, add a subdirectory
77
build and change into that directory:
8-
~/expat-2.7.1$ mkdir build && cd build
9-
~/expat-2.7.1/build$
8+
~/expat-2.8.2$ mkdir build && cd build
9+
~/expat-2.8.2/build$
1010

1111
From that directory, call cmake first, then call make, make test and
1212
make install in the usual way:
13-
~/expat-2.7.1/build$ cmake ..
13+
~/expat-2.8.2/build$ cmake ..
1414
-- The C compiler identification is GNU
1515
-- The CXX compiler identification is GNU
1616
....
1717
-- Configuring done
1818
-- Generating done
19-
-- Build files have been written to: /home/patrick/expat-2.7.1/build
19+
-- Build files have been written to: /home/patrick/expat-2.8.2/build
2020

2121
If you want to specify the install location for your files, append
2222
-DCMAKE_INSTALL_PREFIX=/your/install/path to the cmake call.
2323

24-
~/expat-2.7.1/build$ make && make test && make install
24+
~/expat-2.8.2/build$ make && make test && make install
2525
Scanning dependencies of target expat
2626
[ 5%] Building C object CMakeFiles/expat.dir/lib/xmlparse.c.o
2727
[ 11%] Building C object CMakeFiles/expat.dir/lib/xmlrole.c.o
@@ -36,7 +36,7 @@ Visual Studio Command Prompt or when using mingw, you must open a cmd.exe and
3636
make sure that gcc can be called. On Windows, you also might want to specify a
3737
special Generator for CMake:
3838
for Visual Studio builds do:
39-
cmake .. -G "Visual Studio 16 2019" && msbuild /m expat.sln
39+
cmake .. -G "Visual Studio 17 2022" && msbuild /m expat.sln
4040
for mingw builds do:
4141
cmake .. -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=D:\expat-install
4242
&& gmake && gmake install

0 commit comments

Comments
 (0)