-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: format using new clang-format
- Loading branch information
Showing
19 changed files
with
1,700 additions
and
1,796 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,97 +1,5 @@ | ||
AccessModifierOffset: -2 | ||
AlignAfterOpenBracket: DontAlign | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignEscapedNewlines: Left | ||
AlignOperands: true | ||
AlignTrailingComments: false | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
AllowShortBlocksOnASingleLine: true | ||
AllowShortCaseLabelsOnASingleLine: false | ||
AllowShortFunctionsOnASingleLine: All | ||
AllowShortIfStatementsOnASingleLine: true | ||
AllowShortLoopsOnASingleLine: true | ||
AlwaysBreakAfterDefinitionReturnType: None | ||
AlwaysBreakAfterReturnType: None | ||
AlwaysBreakBeforeMultilineStrings: true | ||
AlwaysBreakTemplateDeclarations: false | ||
BinPackArguments: false | ||
BinPackParameters: false | ||
BraceWrapping: | ||
AfterClass: false | ||
AfterControlStatement: false | ||
AfterEnum: false | ||
AfterFunction: false | ||
AfterNamespace: false | ||
AfterObjCDeclaration: false | ||
AfterStruct: false | ||
AfterUnion: false | ||
BeforeCatch: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
SplitEmptyFunction: false | ||
SplitEmptyNamespace: true | ||
SplitEmptyRecord: true | ||
BreakAfterJavaFieldAnnotations: true | ||
BreakBeforeBinaryOperators: NonAssignment | ||
BreakBeforeBraces: Custom | ||
BreakBeforeInheritanceComma: true | ||
BreakBeforeTernaryOperators: true | ||
BreakConstructorInitializers: BeforeColon | ||
BreakConstructorInitializersBeforeComma: false | ||
BreakStringLiterals: true | ||
ColumnLimit: 0 | ||
CommentPragmas: "^ IWYU pragma:" | ||
CompactNamespaces: false | ||
ConstructorInitializerAllOnOneLineOrOnePerLine: false | ||
ConstructorInitializerIndentWidth: 2 | ||
ContinuationIndentWidth: 2 | ||
Cpp11BracedListStyle: false | ||
DerivePointerAlignment: false | ||
DisableFormat: false | ||
ExperimentalAutoDetectBinPacking: true | ||
FixNamespaceComments: true | ||
ForEachMacros: | ||
- foreach | ||
- Q_FOREACH | ||
- BOOST_FOREACH | ||
IncludeCategories: | ||
- Priority: 2 | ||
Regex: ^"(llvm|llvm-c|clang|clang-c)/ | ||
- Priority: 3 | ||
Regex: ^(<|"(gtest|gmock|isl|json)/) | ||
- Priority: 1 | ||
Regex: .* | ||
IncludeIsMainRegex: (Test)?$ | ||
IndentCaseLabels: false | ||
IndentWidth: 4 | ||
IndentWrappedFunctionNames: true | ||
JavaScriptQuotes: Leave | ||
JavaScriptWrapImports: true | ||
KeepEmptyLinesAtTheStartOfBlocks: true | ||
Language: Cpp | ||
MacroBlockBegin: "" | ||
MacroBlockEnd: "" | ||
MaxEmptyLinesToKeep: 2 | ||
NamespaceIndentation: Inner | ||
ObjCBlockIndentWidth: 7 | ||
ObjCSpaceAfterProperty: true | ||
ObjCSpaceBeforeProtocolList: false | ||
PointerAlignment: Right | ||
ReflowComments: true | ||
ColumnLimit: 110 | ||
IndentWidth: 2 | ||
TabWidth: 2 | ||
SortIncludes: false | ||
SortUsingDeclarations: false | ||
SpaceAfterCStyleCast: false | ||
SpaceAfterTemplateKeyword: false | ||
SpaceBeforeAssignmentOperators: true | ||
SpaceBeforeParens: ControlStatements | ||
SpaceInEmptyParentheses: false | ||
SpacesBeforeTrailingComments: 4 | ||
SpacesInAngles: false | ||
SpacesInCStyleCastParentheses: false | ||
SpacesInContainerLiterals: true | ||
SpacesInParentheses: false | ||
SpacesInSquareBrackets: false | ||
Standard: Cpp11 | ||
TabWidth: 4 | ||
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 |
---|---|---|
@@ -1,58 +1,64 @@ | ||
{ | ||
"name": "zadeh", | ||
"author": "Amin Yahyaabadi, Rajendran T", | ||
"homepage": "https://github.com/atom-ide-community/zadeh", | ||
"version": "3.0.0-beta.4", | ||
"description": "Blazing fast library for fuzzy filtering, matching, and other fuzzy things!", | ||
"homepage": "https://github.com/atom-ide-community/zadeh", | ||
"bugs": { | ||
"url": "https://github.com/atom-ide-community/zadeh/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/atom-ide-community/zadeh.git" | ||
}, | ||
"license": "MIT", | ||
"author": "Amin Yahyaabadi, Rajendran T", | ||
"main": "./index.js", | ||
"node": "./index.js", | ||
"source": "./src/binding/index.ts", | ||
"files": [ | ||
"src", | ||
"prebuilds", | ||
"index.*", | ||
"*.d.ts", | ||
"binding.gyp" | ||
], | ||
"scripts": { | ||
"format": "prettier --write . && clang-format -i src/*.h src/binding/*.cc src/binding/*.h", | ||
"test.format": "prettier . --check", | ||
"lint": "eslint . --fix", | ||
"test.lint": "eslint .", | ||
"tidy": "clang-tidy src/*.cc src/*.h", | ||
"tidy.fix": "clang-tidy src/*.cc src/*.h --fix --fix-errors", | ||
"clean.native": "shx rm -rf build prebuilds", | ||
"benchmark": "npm run benchmark.small && npm run benchmark.regular && npm run benchmark.large && npm run benchmark.tree", | ||
"benchmark.large": "node benchmark/benchmark-large.js", | ||
"benchmark.regular": "node benchmark/benchmark.js", | ||
"benchmark.small": "node benchmark/benchmark-small.js", | ||
"benchmark.tree": "node benchmark/benchmark-tree.js", | ||
"build": "npm run build.native && npm run build.js", | ||
"build.js": "npm run types.js && cross-env NODE_ENV=production parcel build --target main ./src/binding/index.ts", | ||
"prebuild.native": "prebuildify --napi -t 12.0.0 -t [email protected] -t [email protected] --strip --tag-libc", | ||
"build.native": "node-gyp configure --release && node-gyp build --release", | ||
"build.native.debug": "node-gyp configure --debug && node-gyp build --debug", | ||
"prebuild.native": "prebuildify --napi -t 12.0.0 -t [email protected] -t [email protected] --strip --tag-libc", | ||
"prebuild.native.ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t [email protected] -t [email protected] --strip --tag-libc", | ||
"bump": "ncu -u && ncu -u /parcel/ --greatest", | ||
"clean": "npm run clean.native && npm run clean.js", | ||
"clean.js": "shx rm -rf dist dist-test .rollup.cache .parcel-cache **/tsconfig.tsbuildinfo ./index.* ./*.d.ts", | ||
"clean.native": "shx rm -rf build prebuilds", | ||
"dev.js": "npm run types.js && cross-env NODE_ENV=development parcel watch --target main ./src/binding/index.ts", | ||
"build.js": "npm run types.js && cross-env NODE_ENV=production parcel build --target main ./src/binding/index.ts", | ||
"types.js": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts .", | ||
"clean": "npm run clean.native && npm run clean.js", | ||
"examples.cpp": "cmake -S . -B ./build && cmake --build ./build --config Debug", | ||
"format": "prettier --write . && clang-format -i src/*.h src/binding/*.cc src/binding/*.h", | ||
"install": "node-gyp-build", | ||
"build": "npm run build.native && npm run build.js", | ||
"lint": "eslint . --fix", | ||
"prebuild.native.ia32": "prebuildify --napi --arch=ia32 -t 12.0.0 -t [email protected] -t [email protected] --strip --tag-libc", | ||
"prepare": "npm run clean.js && npm run build", | ||
"test": "shx rm -rf dist-test && shx cp -r test dist-test && coffee --compile dist-test && shx rm -rf dist-test/*.coffee && jasmine dist-test/*-spec.js", | ||
"benchmark.regular": "node benchmark/benchmark.js", | ||
"benchmark.large": "node benchmark/benchmark-large.js", | ||
"benchmark.small": "node benchmark/benchmark-small.js", | ||
"benchmark.tree": "node benchmark/benchmark-tree.js", | ||
"benchmark": "npm run benchmark.small && npm run benchmark.regular && npm run benchmark.large && npm run benchmark.tree", | ||
"examples.cpp": "cmake -S . -B ./build && cmake --build ./build --config Debug", | ||
"bump": "ncu -u && ncu -u /parcel/ --greatest", | ||
"prepare": "npm run clean.js && npm run build" | ||
"test.format": "prettier . --check", | ||
"test.lint": "eslint .", | ||
"tidy": "clang-tidy src/*.cc src/*.h", | ||
"tidy.fix": "clang-tidy src/*.cc src/*.h --fix --fix-errors", | ||
"types.js": "tsc -p ./src/binding/tsconfig.json --emitDeclarationOnly && shx mv ./src/binding/*.d.ts ." | ||
}, | ||
"prettier": "prettier-config-atomic", | ||
"files": [ | ||
"src", | ||
"prebuilds", | ||
"index.*", | ||
"*.d.ts", | ||
"binding.gyp" | ||
], | ||
"gypfile": true, | ||
"dependencies": { | ||
"node-addon-api": "~4.2.0", | ||
"node-gyp-build": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"coffeescript": "^2.6.1", | ||
"cross-env": "^7.0.3", | ||
"eslint-config-atomic": "^1.16.3", | ||
"eslint-config-atomic": "^1.16.4", | ||
"fast-equals": "^2.0.3", | ||
"fuzzaldrin-plus": "^0.6.0", | ||
"jasmine": "^3.10.0", | ||
|
@@ -63,6 +69,13 @@ | |
"terser-config-atomic": "^0.1.1", | ||
"typescript": "^4.4.4" | ||
}, | ||
"engines": { | ||
"atom": ">=1.52.0 <2.0.0", | ||
"electron": ">=6.0.0", | ||
"node": ">=12.0.0" | ||
}, | ||
"gypfile": true, | ||
"node": "./index.js", | ||
"targets": { | ||
"main": { | ||
"context": "node", | ||
|
@@ -72,18 +85,5 @@ | |
"outputFormat": "commonjs", | ||
"isLibrary": true | ||
} | ||
}, | ||
"engines": { | ||
"atom": ">=1.52.0 <2.0.0", | ||
"electron": ">=6.0.0", | ||
"node": ">=12.0.0" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/atom-ide-community/zadeh.git" | ||
}, | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/atom-ide-community/zadeh/issues" | ||
} | ||
} |
Oops, something went wrong.