Skip to content

Commit

Permalink
add libhv directly to ww
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Apr 22, 2024
1 parent 8d07fc5 commit 22e0ffb
Show file tree
Hide file tree
Showing 96 changed files with 22,057 additions and 0 deletions.
95 changes: 95 additions & 0 deletions ww/libhv/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 160
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: true
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '.*'
Priority: 1
- Regex: '^".*/'
Priority: 2
- Regex: '^<)'
Priority: 3
IncludeIsMainRegex: '$'
IndentCaseLabels: false
IndentWidth: 4
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 4
UseTab: Never
...

3 changes: 3 additions & 0 deletions ww/libhv/.clang-tidy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# silent
Checks: >
-*
1 change: 1 addition & 0 deletions ww/libhv/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cpputil/json.hpp linguist-vendored
78 changes: 78 additions & 0 deletions ww/libhv/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Bazel
bazel-*
MODULE.bazel
MODULE.bazel.lock

# Compiled Object files
*.o
*.lo
*.slo
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Compiled Static libraries
*.a
*.la
*.lai
*.lib

# Executables
*.exe
*.out
*.app

# cache
*~
*.bk
*.bak
*.old
*.new

# IDE
.vs
.vscode
.DS_Store

tags
cscope*
.ycm*

# generated
examples/protorpc/generated

# output
*.pid
*.log
*.db
hconfig.h.in

include
lib
bin
tmp
dist
test
*_test
build
config.mk
hconfig.h
html/uploads

# msvc
*.VC.*
*.vcxproj.*
Debug
Release

# cmake
CMakeFiles
CMakeCache.txt
cmake_install.cmake
Loading

0 comments on commit 22e0ffb

Please sign in to comment.