Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
# Language stays Cpp: clang-format has no separate C mode; Cpp mode formats C.
Language: Cpp
BasedOnStyle: Google
ColumnLimit: 100
IndentWidth: 2
TabWidth: 2
UseTab: Never
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: true
AlignTrailingComments: true
Expand All @@ -14,14 +14,10 @@ AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: true
BinPackParameters: true
BreakBeforeBraces: Attach
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
DerivePointerAlignment: false
PointerAlignment: Left
IncludeBlocks: Preserve
Expand All @@ -42,14 +38,11 @@ IncludeCategories:
Priority: 3
SortIncludes: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInContainerLiterals: true
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: c++17
Standard: Latest
13 changes: 8 additions & 5 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
---
# C codebase: google-* and modernize-* (C++-only check sets) are intentionally
# absent; bugprone-* carries the leak/UB checks the C error paths rely on.
# bugprone-easily-swappable-parameters is excluded: the (buf, len) and
# (errbuf, errlen) parameter pairs used throughout the export API trip it on
# nearly every function.
Checks: >
-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
clang-analyzer-*,
clang-diagnostic-*,
google-*,
-google-readability-todo,
modernize-*,
-modernize-use-trailing-return-type,
readability-*,
-readability-magic-numbers,
-readability-identifier-length
Expand All @@ -15,7 +18,7 @@ WarningsAsErrors: >
clang-analyzer-core.NullDereference,
clang-analyzer-unix.*

HeaderFilterRegex: 'include/pg_stat_ch/.*'
HeaderFilterRegex: '(include/(pg_stat_ch|config)|src)/.*'

CheckOptions:
- key: readability-identifier-naming.ClassCase
Expand Down
137 changes: 0 additions & 137 deletions .claude/skills/cpp-header-template/SKILL.md

This file was deleted.

74 changes: 0 additions & 74 deletions .claude/skills/cpp-naming-check/SKILL.md

This file was deleted.

74 changes: 0 additions & 74 deletions .claude/skills/cpp-review/SKILL.md

This file was deleted.

Loading