-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
190 changed files
with
14,827 additions
and
7,674 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,166 @@ | ||
Language : Cpp | ||
BasedOnStyle: LLVM | ||
BreakBeforeBraces : Linux | ||
IndentWidth: 4 | ||
TabWidth : 4 | ||
UseTab : Always | ||
ColumnLimit : 0 | ||
--- | ||
Language: Cpp | ||
# BasedOnStyle: WebKit | ||
AccessModifierOffset: -4 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveMacros: None | ||
AlignConsecutiveAssignments: None | ||
AlignConsecutiveBitFields: None | ||
AlignConsecutiveDeclarations: None | ||
AlignEscapedNewlines: Right | ||
AlignOperands: DontAlign | ||
AlignTrailingComments: false | ||
AllowAllArgumentsOnNextLine: true | ||
AllowAllConstructorInitializersOnNextLine: true | ||
AllowAllParametersOfDeclarationOnNextLine: true | ||
AllowShortEnumsOnASingleLine: true | ||
AllowShortBlocksOnASingleLine: Empty | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortLambdasOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: Never | ||
AllowShortLoopsOnASingleLine: false | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: MultiLine | ||
AttributeMacros: | ||
- __capability | ||
BinPackArguments: true | ||
BinPackParameters: true | ||
BraceWrapping: | ||
AfterCaseLabel: false | ||
AfterClass: false | ||
AfterControlStatement: Never | ||
AfterEnum: false | ||
AfterFunction: true | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
AfterExternBlock: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
BeforeLambdaBody: false | ||
BeforeWhile: false | ||
IndentBraces: false | ||
SplitEmptyFunction: true | ||
SplitEmptyRecord: true | ||
SplitEmptyNamespace: true | ||
BreakBeforeBinaryOperators: All | ||
BreakBeforeConceptDeclarations: true | ||
BreakBeforeBraces: WebKit | ||
BreakBeforeInheritanceComma: false | ||
BreakInheritanceList: BeforeColon | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakConstructorInitializers: BeforeComma | ||
BreakAfterJavaFieldAnnotations: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
CommentPragmas: '^ IWYU pragma:' | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 4 | ||
ContinuationIndentWidth: 4 | ||
Cpp11BracedListStyle: false | ||
DeriveLineEnding: true | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
EmptyLineBeforeAccessModifier: LogicalBlock | ||
ExperimentalAutoDetectBinPacking: false | ||
FixNamespaceComments: false | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
StatementAttributeLikeMacros: | ||
- Q_EMIT | ||
IncludeBlocks: Preserve | ||
IncludeCategories: | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
Priority: 2 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
- Regex: '^(<|"(gtest|gmock|isl|json)/)' | ||
Priority: 3 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
- Regex: '.*' | ||
Priority: 1 | ||
SortPriority: 0 | ||
CaseSensitive: false | ||
IncludeIsMainRegex: '(Test)?$' | ||
IncludeIsMainSourceRegex: '' | ||
IndentCaseLabels: false | ||
IndentCaseBlocks: false | ||
IndentGotoLabels: true | ||
IndentPPDirectives: None | ||
IndentExternBlock: AfterExternBlock | ||
IndentRequires: false | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: false | ||
InsertTrailingCommas: None | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
MacroBlockBegin: '' | ||
MacroBlockEnd: '' | ||
MaxEmptyLinesToKeep: 1 | ||
NamespaceIndentation: Inner | ||
ObjCBinPackProtocolList: Auto | ||
ObjCBlockIndentWidth: 4 | ||
ObjCBreakBeforeNestedBlockParam: true | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: true | ||
PenaltyBreakAssignment: 2 | ||
PenaltyBreakBeforeFirstCallParameter: 19 | ||
PenaltyBreakComment: 300 | ||
PenaltyBreakFirstLessLess: 120 | ||
PenaltyBreakString: 1000 | ||
PenaltyBreakTemplateDeclaration: 10 | ||
PenaltyExcessCharacter: 1000000 | ||
PenaltyReturnTypeOnItsOwnLine: 60 | ||
PenaltyIndentedWhitespace: 0 | ||
PointerAlignment: Left | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortJavaStaticImport: Before | ||
SortUsingDeclarations: true | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterLogicalNot: false | ||
SpaceAfterTemplateKeyword: true | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeCaseColon: false | ||
SpaceBeforeCpp11BracedList: true | ||
SpaceBeforeCtorInitializerColon: true | ||
SpaceBeforeInheritanceColon: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceAroundPointerQualifiers: Default | ||
SpaceBeforeRangeBasedForLoopColon: true | ||
SpaceInEmptyBlock: true | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 1 | ||
SpacesInAngles: false | ||
SpacesInConditionalStatement: false | ||
SpacesInContainerLiterals: true | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
SpaceBeforeSquareBrackets: false | ||
BitFieldColonSpacing: Both | ||
Standard: Latest | ||
StatementMacros: | ||
- Q_UNUSED | ||
- QT_REQUIRE_VERSION | ||
TabWidth: 8 | ||
UseCRLF: false | ||
UseTab: Never | ||
WhitespaceSensitiveMacros: | ||
- STRINGIZE | ||
- PP_STRINGIZE | ||
- BOOST_PP_STRINGIZE | ||
- NS_SWIFT_NAME | ||
- CF_SWIFT_NAME | ||
... | ||
|
||
SortIncludes: false | ||
AllowShortIfStatementsOnASingleLine : false | ||
AllowShortFunctionsOnASingleLine : Empty | ||
AlwaysBreakAfterReturnType : None | ||
AlignAfterOpenBracket : Align | ||
AlignOperands : true | ||
AlignTrailingComments : true | ||
IndentCaseLabels : true | ||
SpaceAfterCStyleCast : true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ build/ | |
.vscode/ | ||
.clangd/ | ||
.test/ | ||
.cache/ | ||
compile_commands.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "deps/uthash"] | ||
path = deps/uthash | ||
url = https://github.com/troydhanson/uthash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
if (AUGYANG_LIBRARIES) | ||
# in cache already | ||
set(AUGYANG_FOUND TRUE) | ||
else(AUGYANG_LIBRARIES) | ||
find_library( | ||
AUGYANG_LIBRARY | ||
NAMES | ||
srds_augeas.so | ||
PATHS | ||
/usr/lib | ||
/usr/lib64 | ||
/usr/local/lib | ||
/usr/local/lib64 | ||
/opt/local/lib | ||
/sw/lib | ||
${CMAKE_LIBRARY_PATH} | ||
${CMAKE_INSTALL_PREFIX}/lib | ||
|
||
# srds_augeas.so | ||
${CMAKE_INSTALL_PREFIX}/lib/sysrepo/plugins | ||
) | ||
|
||
if (AUGYANG_LIBRARY) | ||
set(AUGYANG_FOUND TRUE) | ||
else (AUGYANG_LIBRARY) | ||
set(AUGYANG_FOUND FALSE) | ||
endif (AUGYANG_LIBRARY) | ||
|
||
set(AUGYANG_LIBRARIES ${AUGYANG_LIBRARY}) | ||
|
||
mark_as_advanced(AUGYANG_LIBRARIES) | ||
endif(AUGYANG_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# - Try to find SYSTEMD | ||
# Once done, this will define | ||
# | ||
# SYSTEMD_FOUND - system has SYSTEMD | ||
# SYSTEMD_INCLUDE_DIRS - the SYSTEMD include directories | ||
# SYSTEMD_LIBRARIES - the SYSTEMD library | ||
find_package(PkgConfig) | ||
|
||
pkg_check_modules(SYSTEMD_PKGCONF libsystemd) | ||
|
||
find_path(SYSTEMD_INCLUDE_DIRS | ||
NAMES systemd/sd-bus.h | ||
PATHS ${SYSTEMD_PKGCONF_INCLUDE_DIRS} | ||
) | ||
|
||
find_library(SYSTEMD_LIBRARIES | ||
NAMES systemd | ||
PATHS ${SYSTEMD_PKGCONF_LIBRARY_DIRS} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Systemd DEFAULT_MSG SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) | ||
|
||
mark_as_advanced(SYSTEMD_INCLUDE_DIRS SYSTEMD_LIBRARIES) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# modified version of https://github.com/nasa/channel-emulator/blob/master/cmake/Modules/FindLibNL.cmake | ||
|
||
find_path(NL_INCLUDE_DIRS netlink/netlink.h | ||
/usr/include | ||
/usr/include/libnl3 | ||
/usr/local/include | ||
/usr/local/include/libnl3 | ||
${CMAKE_INCLUDE_PATH} | ||
${CMAKE_PREFIX_PATH}/include/libnl3 | ||
) | ||
|
||
find_library( | ||
NL_LIBRARY | ||
NAMES nl nl-3 | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
find_library( | ||
NL_ROUTE_LIBRARY | ||
NAMES nl-route nl-route-3 | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
find_library( | ||
NL_NETFILTER_LIBRARY | ||
NAMES nl-nf nl-nf-3 | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
find_library( | ||
NL_GENL_LIBRARY | ||
NAMES nl-genl nl-genl-3 | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
|
||
if (NL_INCLUDE_DIRS AND NL_LIBRARY) | ||
set(NL_FOUND TRUE) | ||
endif (NL_INCLUDE_DIRS AND NL_LIBRARY) | ||
|
||
if (NL_FOUND) | ||
if (NOT NL_FIND_QUIETLY) | ||
set(NL_LIBRARIES ${NL_LIBRARY} ${NL_ROUTE_LIBRARY} ${NL_NETFILTER_LIBRARY} ${NL_GENL_LIBRARY}) | ||
message("Found netlink libraries: ${NL_LIBRARIES}") | ||
message("Found netlink includes: ${NL_INCLUDE_DIRS}") | ||
endif (NOT NL_FIND_QUIETLY) | ||
ELSE (NL_FOUND) | ||
if (NL_FIND_REQUIRED) | ||
message(FATAL_ERROR "Could not find netlink library.") | ||
endif (NL_FIND_REQUIRED) | ||
endif (NL_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if(PTHREAD_LIBRARIES AND PTHREAD_INCLUDE_DIRS) | ||
set(PTHREAD_FOUND TRUE) | ||
else() | ||
find_path( | ||
PTHREAD_INCLUDE_DIR | ||
NAMES pthread.h | ||
PATHS /usr/include /usr/local/include /opt/local/include /sw/include ${CMAKE_INCLUDE_PATH} ${CMAKE_INSTALL_PREFIX}/include | ||
) | ||
|
||
find_library( | ||
PTHREAD_LIBRARY | ||
NAMES pthread | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
|
||
if(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
set(PTHREAD_FOUND TRUE) | ||
else(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
set(PTHREAD_FOUND FALSE) | ||
endif(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
|
||
set(PTHREAD_INCLUDE_DIRS ${PTHREAD_INCLUDE_DIR}) | ||
set(PTHREAD_LIBRARIES ${PTHREAD_LIBRARY}) | ||
endif() |
Oops, something went wrong.