Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangh43 committed Mar 3, 2025
0 parents commit ba56732
Show file tree
Hide file tree
Showing 550 changed files with 232,461 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
# by @Samuel Maynard
# ---
# Our C++ format is an adaption of Google's standards to the standards laid out
# in the "Standard Development and Coding Practices" document which was
# compiled by the Advacned Technology department.
# There are many more format style options than are listed here. They can be
# found at https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# When an option is not sepecified, it defaults to Google's style (this can be
# changed with the BasedOnStyle option)
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
ConstructorInitializerIndentWidth: 4
DerivePointerAlignment: false
FixNamespaceComments: true
IncludeBlocks: Regroup
IncludeCategories:
- Regex: '^"pch.h"'
Priority: -1
- Regex: '^"stdafx.h"'
Priority: -1
- Regex: '^<ext/.*\.h>'
Priority: 2
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IndentWidth: 4
IndentCaseLabels: false
MaxEmptyLinesToKeep: 1
# this will insert a \n at the end of the file,
# which won't show as a new line, only \n\n will show as new line
#InsertNewlineAtEOF: true
# this will keep the empty line(\n\n) at the end of file
# KeepEmptyLinesAtEOF: true
NamespaceIndentation: None
PointerAlignment: Right
SpaceAfterCStyleCast: true
SpacesInContainerLiterals: false
---
Language: Proto
BasedOnStyle: Google
...
17 changes: 17 additions & 0 deletions .github/workflows/Clang-format-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: test-clang-format

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: DoozyX/[email protected]
with:
source: '.'
exclude: './third_party ./external ./redis ./include/redis ./lua ./fpconv'
extensions: 'h,cpp'
clangFormatVersion: 14
style: file
23 changes: 23 additions & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Reviewdog
on: [pull_request]

jobs:
cpplint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: reviewdog/action-cpplint@master
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
flags: --linelength=80 # Optional
filter: "-readability/braces\
,-whitespace/braces\
,-whitespace/comments\
,-whitespace/indent\
,-whitespace/newline\
,-whitespace/operators\
,-whitespace/parens\
,-build/include_subdir\
,-runtime/references\
" # Optional
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
*.code-workspace
.vscode
.idea
.root
.DS_Store
.cache
.clangd

# Prerequisites
*.d

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

# Precompiled Headers
*.gch
*.pch

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

# Fortran module files
*.mod
*.smod

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

# Executables
*.exe
*.out
*.app

aws
abseil-cpp

# pre-commit
.pre-commit-config.yaml

# Swap files
*.swp
*.swo

logs/
data/
build/
cmake-build*

bin
bld
bin
cmake/
tests/tmp
*.cnf

*.pb.*

.editorconfig
compile_commands*

*.log

eloq_data

15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[submodule "cass"]
path = cass
url = [email protected]:eloqdata/cpp-driver.git
[submodule "eloq_metrics"]
path = eloq_metrics
url = [email protected]:eloqdata/eloq-metrics.git
[submodule "tx_service"]
path = tx_service
url = [email protected]:eloqdata/tx_service.git
[submodule "crcspeed"]
path = crcspeed
url = https://github.com/mattsta/crcspeed
[submodule "log_service"]
path = log_service
url = [email protected]:eloqdata/log_service.git
Loading

0 comments on commit ba56732

Please sign in to comment.