-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit of source codes. Only unbcf is working.
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
c66fb0e
commit 1fa9c12
Showing
15 changed files
with
3,832 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
Language: Cpp | ||
# AccessModifierOffset: -2 | ||
# AlignAfterOpenBracket: Align | ||
# AlignConsecutiveAssignments: false | ||
# AlignConsecutiveDeclarations: false | ||
# AlignEscapedNewlinesLeft: false | ||
# AlignOperands: true | ||
# AlignTrailingComments: true | ||
# AllowAllParametersOfDeclarationOnNextLine: true | ||
# AllowShortBlocksOnASingleLine: false | ||
# AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: false | ||
# AllowShortIfStatementsOnASingleLine: false | ||
# AllowShortLoopsOnASingleLine: false | ||
# AlwaysBreakAfterDefinitionReturnType: None | ||
# AlwaysBreakAfterReturnType: None | ||
# AlwaysBreakBeforeMultilineStrings: false | ||
AlwaysBreakTemplateDeclarations: true | ||
# BinPackArguments: true | ||
# BinPackParameters: true | ||
BraceWrapping: | ||
AfterClass: true | ||
AfterControlStatement: true | ||
AfterEnum: true | ||
AfterFunction: true | ||
AfterNamespace: true | ||
AfterObjCDeclaration: false | ||
AfterStruct: true | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: true | ||
IndentBraces: false | ||
#BreakBeforeBinaryOperators: None | ||
BreakBeforeBraces: Custom | ||
BreakBeforeTernaryOperators: false | ||
BreakConstructorInitializersBeforeComma: true | ||
ColumnLimit: 200 | ||
# CommentPragmas: '^ IWYU pragma:' | ||
# ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 0 | ||
# ContinuationIndentWidth: 4 | ||
# Cpp11BracedListStyle: true | ||
# DerivePointerAlignment: false | ||
# DisableFormat: false | ||
# ExperimentalAutoDetectBinPacking: false | ||
# ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ] | ||
# IncludeCategories: | ||
# - Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
# Priority: 2 | ||
# - Regex: '^(<|"(gtest|isl|json)/)' | ||
# Priority: 3 | ||
# - Regex: '.*' | ||
# Priority: 1 | ||
# IndentCaseLabels: false | ||
# IndentWidth: 2 | ||
# IndentWrappedFunctionNames: false | ||
# KeepEmptyLinesAtTheStartOfBlocks: true | ||
# MacroBlockBegin: '' | ||
# MacroBlockEnd: '' | ||
# MaxEmptyLinesToKeep: 1 | ||
# NamespaceIndentation: None | ||
# ObjCBlockIndentWidth: 2 | ||
# ObjCSpaceAfterProperty: false | ||
# ObjCSpaceBeforeProtocolList: true | ||
# PenaltyBreakBeforeFirstCallParameter: 19 | ||
# PenaltyBreakComment: 300 | ||
# PenaltyBreakFirstLessLess: 120 | ||
# PenaltyBreakString: 1000 | ||
# PenaltyExcessCharacter: 1000000 | ||
# PenaltyReturnTypeOnItsOwnLine: 60 | ||
PointerAlignment: Left | ||
# ReflowComments: true | ||
SortIncludes: true | ||
# SpaceAfterCStyleCast: false | ||
# SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: Never | ||
# SpaceInEmptyParentheses: false | ||
# SpacesBeforeTrailingComments: 1 | ||
# SpacesInAngles: false | ||
# SpacesInContainerLiterals: true | ||
# SpacesInCStyleCastParentheses: false | ||
# SpacesInParentheses: false | ||
# SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 2 | ||
UseTab: Never | ||
... |
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,40 @@ | ||
--- | ||
Checks: ' | ||
-abseil-*, | ||
bugprone-*, | ||
-boost-*, | ||
-cert-*, | ||
clang-diagnostic-*, | ||
clang-analyzer-*, | ||
cppcoreguidelines-*, | ||
-cppcoreguidelines-avoid-magic-numbers, | ||
-darwin-*, | ||
-fuchsia-*, | ||
-google-*, | ||
-hicpp-*, | ||
-linuxkernel-*, | ||
-llvm-*, | ||
misc-*, | ||
moderize-*, | ||
-modernize-use-trailing-return-type, | ||
-modernize-use-nodiscard, | ||
-moderize-use-auto, | ||
-mpi-*, | ||
-objc-*, | ||
-openmp-*, | ||
performance-*, | ||
-portability-*, | ||
readability-*, | ||
-readability-function-cognitive-complexity, | ||
-readability-function-size, | ||
-readability-identifier-naming, | ||
-readability-uppercase-literal-suffix, | ||
-readability-magic-numbers | ||
' | ||
WarningsAsErrors: '*' | ||
HeaderFilterRegex: 'complex/.*\.hpp' | ||
FormatStyle: file | ||
CheckOptions: | ||
- key: cppcoreguidelines-macro-usage.AllowedRegexp | ||
value: 'COMPLEX_EXPORT|COMPLEX_NO_EXPORT|COMPLEX_DEPRECATED' | ||
... |
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,30 @@ | ||
|
||
.vscode/ | ||
.idea/ | ||
vcpkg_installed/ | ||
CMakeLists.txt.* | ||
/[Bb]uild/ | ||
/[Bb]uilds/ | ||
/Build-ninja/ | ||
/Build-Xcode/ | ||
.cproject | ||
.project | ||
/clang/ | ||
/xcode/ | ||
/x64/ | ||
/i386/ | ||
/qtcreator/ | ||
/Build2/ | ||
/QT_BUILD/.settings | ||
.floo | ||
/ninja/ | ||
/linux/ | ||
.idea | ||
/[Dd]ebug/ | ||
/[Rr]elease/ | ||
.ctags | ||
.vscode | ||
*.user* | ||
test_data/ | ||
CMakeUserPresets.json | ||
Workspace |
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,31 @@ | ||
cmake_minimum_required(VERSION 3.19) | ||
|
||
|
||
project(BCFTools | ||
VERSION 0.1.0 | ||
DESCRIPTION "SFS Reader" | ||
HOMEPAGE_URL "" | ||
LANGUAGES CXX | ||
) | ||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
|
||
#------------------------------------------------------------------------------- | ||
# unbcf executable | ||
#------------------------------------------------------------------------------- | ||
set(unbcf_sources | ||
${BCFTools_SOURCE_DIR}/src/SFSReader.h | ||
${BCFTools_SOURCE_DIR}/src/SFSReader.cpp | ||
|
||
${BCFTools_SOURCE_DIR}/src/SFSNodeItem.h | ||
${BCFTools_SOURCE_DIR}/src/SFSNodeItem.cpp | ||
|
||
${BCFTools_SOURCE_DIR}/src/SFSUtils.hpp | ||
${BCFTools_SOURCE_DIR}/src/unbcf.cpp | ||
) | ||
|
||
add_executable(unbcf ${unbcf_sources}) |
Oops, something went wrong.