Skip to content

Commit

Permalink
merge in cmake-init generated files
Browse files Browse the repository at this point in the history
asio needs Threads library, so this is added to install-config.cmake

export ASIO_NO_DEPRECATED definition

add cmake user preset too

do not convert british to american english

add todos from codespell check

liberate clang-tidy config file for use with async code too

use cmake VERIFY_INTERFACE_HEADER_SETS

install pkg config file too

suppress compiler Warnings with llvm-17 on OSX

do not verify nor install experimental headers

disalbe some warnings in developer mode
  • Loading branch information
ClausKlein committed Mar 25, 2024
1 parent ed5db1b commit e4e3e42
Show file tree
Hide file tree
Showing 35 changed files with 1,297 additions and 0 deletions.
78 changes: 78 additions & 0 deletions asio/.TODO.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Claus-iMac:dev clausklein$ make spell-check | grep -v encode | grep -vw alives
CMake Error at cmake/spell.cmake:27 (message):
Run again with FIX=YES to fix these errors.


make[3]: *** [CMakeFiles/spell-check] Error 1
make[2]: *** [CMakeFiles/spell-check.dir/all] Error 2
make[1]: *** [CMakeFiles/spell-check.dir/rule] Error 2
make: *** [spell-check] Error 2
[100%] Checking spelling
./include/asio/io_context.hpp:185: exeution ==> execution
./include/asio/io_context.hpp:318: reponsibility ==> responsibility
./include/asio/io_context.hpp:349: reponsibility ==> responsibility
./include/asio/io_context.hpp:401: reponsibility ==> responsibility
./include/asio/io_context.hpp:423: reponsibility ==> responsibility
./include/asio/use_future.hpp:102: retuned ==> returned
./include/asio/impl/use_future.hpp:203: exeption ==> exception, exemption
./include/asio/experimental/deferred.hpp:375: alue ==> value
./include/asio/experimental/impl/parallel_group.hpp:80: operatations ==> operations
./include/asio/detail/executor_function.hpp:124: copyable ==> copiable
./include/asio/detail/executor_function.hpp:171: copyable ==> copiable
./include/asio/detail/service_registry.hpp:79: Initalise ==> Initialise
./include/asio/detail/service_registry.hpp:84: Initalise ==> Initialise
./include/asio/detail/win_iocp_io_context.hpp:267: resouce ==> resource
./include/asio/detail/timer_queue_ptime.hpp:32: instantation ==> instantiation
./include/asio/execution/any_executor.hpp:98: requre ==> require
./include/asio/execution/impl/bad_executor.ipp:2: exection ==> execution
./include/asio/execution/impl/receiver_invocation_error.ipp:2: exection ==> execution
./include/asio/ip/detail/endpoint.hpp:31: implementating ==> implementing
./src/examples/cpp11/timers/time_t_timer.cpp:66: absoluate ==> absolute
./src/examples/cpp11/operations/composed_6.cpp:92: asychronous ==> asynchronous
./src/examples/cpp11/operations/composed_7.cpp:59: asychronous ==> asynchronous
./src/examples/cpp03/timers/time_t_timer.cpp:65: absoluate ==> absolute
./src/examples/cpp03/porthopper/client.cpp:100: renegotation ==> renegotiation
./src/examples/cpp03/porthopper/client.cpp:125: renegotation ==> renegotiation
./src/examples/cpp03/porthopper/client.cpp:153: renegotation ==> renegotiation
./src/examples/cpp03/porthopper/client.cpp:166: renegotation ==> renegotiation
./src/examples/cpp14/operations/composed_6.cpp:103: asychronous ==> asynchronous
./src/examples/cpp14/operations/composed_7.cpp:65: asychronous ==> asynchronous
./src/examples/cpp14/operations/composed_7.cpp:111: asychronous ==> asynchronous
./src/doc/using.qbk:227: Explictly ==> Explicitly
./src/doc/history.qbk:137: occured ==> occurred
./src/doc/history.qbk:984: compatiblity ==> compatibility
./src/doc/history.qbk:1101: Lightening ==> Lightning, lighting
./src/doc/history.qbk:1177: copyable ==> copiable
./src/doc/history.qbk:1220: discconected ==> disconnected
./src/doc/history.qbk:1382: compatability ==> compatibility
./src/doc/history.qbk:1807: copyable ==> copiable
./src/doc/history.qbk:1842: accomodate ==> accommodate
./src/doc/history.qbk:2062: tranferred ==> transferred
./src/doc/reference.qbk:1646: requre ==> require
./src/doc/reference.qbk:83101: requre ==> require
./src/doc/reference.qbk:96234: alue ==> value
./src/doc/reference.qbk:96274: alue ==> value
./src/doc/reference.qbk:103899: exeution ==> execution
./src/doc/reference.qbk:104790: reponsibility ==> responsibility
./src/doc/reference.qbk:104833: reponsibility ==> responsibility
./src/doc/reference.qbk:104917: reponsibility ==> responsibility
./src/doc/reference.qbk:104948: reponsibility ==> responsibility
./src/doc/reference.qbk:107562: exeution ==> execution
./src/doc/reference.qbk:157316: retuned ==> returned
./src/doc/quickref.xml:17: thead ==> thread
./src/doc/quickref.xml:26: thead ==> thread
./src/doc/quickref.xml:180: thead ==> thread
./src/doc/quickref.xml:186: thead ==> thread
./src/doc/quickref.xml:356: thead ==> thread
./src/doc/quickref.xml:362: thead ==> thread
./src/doc/quickref.xml:463: thead ==> thread
./src/doc/quickref.xml:469: thead ==> thread
./src/doc/quickref.xml:613: thead ==> thread
./src/doc/quickref.xml:628: thead ==> thread
./src/doc/quickref.xml:729: thead ==> thread
./src/doc/quickref.xml:741: thead ==> thread
./src/doc/requirements/asynchronous_operations.qbk:309: asynchonous ==> asynchronous
./src/doc/overview/coro.qbk:137: follwing ==> following
./src/doc/overview/coro.qbk:194: direclty ==> directly
Claus-iMac:dev clausklein$

178 changes: 178 additions & 0 deletions asio/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
---
#XXX Language: Cpp
# BasedOnStyle: Chromium
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: false
AlignConsecutiveBitFields: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: DontAlign
AlignOperands: DontAlign
AlignTrailingComments: false
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortEnumsOnASingleLine: false
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortLambdasOnASingleLine: All
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: MultiLine
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: false
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: true
BeforeWhile: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: NonAssignment
BreakBeforeBraces: Custom
# BreakBeforeInheritanceComma: true
BreakInheritanceList: BeforeComma
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: true
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: true
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DeriveLineEnding: false
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Regroup
IncludeCategories:
# Standard library headers come before anything else
- Regex: '^<[a-z_]+>'
Priority: -1
- Regex: '^<.+\.h(pp)?>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: ''
IncludeIsMainSourceRegex: ''
IndentCaseLabels: true
IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: AfterHash
IndentExternBlock: NoIndent
IndentWidth: 2
IndentWrappedFunctionNames: false
InsertTrailingCommas: Wrapped
JavaScriptQuotes: Double
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Never
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
RawStringFormats:
- Language: Cpp
Delimiters:
- cc
- CC
- cpp
- Cpp
- CPP
- 'c++'
- 'C++'
CanonicalDelimiter: ''
BasedOnStyle: google
- Language: TextProto
Delimiters:
- pb
- PB
- proto
- PROTO
EnclosingFunctions:
- EqualsProto
- EquivToProto
- PARSE_PARTIAL_TEXT_PROTO
- PARSE_TEST_PROTO
- PARSE_TEXT_PROTO
- ParseTextOrDie
- ParseTextProtoOrDie
- ParseTestProto
- ParsePartialTestProto
CanonicalDelimiter: ''
BasedOnStyle: google
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterLogicalNot: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatementsExceptForEachMacros
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyBlock: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInConditionalStatement: false
SpacesInContainerLiterals: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
SpaceBeforeSquareBrackets: false
Standard: Auto
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseCRLF: false
UseTab: Never
WhitespaceSensitiveMacros:
- STRINGIZE
- PP_STRINGIZE
- BOOST_PP_STRINGIZE
...
Loading

0 comments on commit e4e3e42

Please sign in to comment.