Skip to content

Commit e99a7f7

Browse files
committed
Merge branch '2.0.0-alpha' into develop
2 parents 4a42435 + cb160f7 commit e99a7f7

962 files changed

Lines changed: 35314 additions & 28336 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
# Configuração do clang-format para pgmodeler
3+
# Baseado no estilo LLVM com customizações para o projeto
4+
5+
# Estilo base
6+
BasedOnStyle: LLVM
7+
8+
# Indentação e tabs
9+
IndentWidth: 4
10+
UseTab: Always
11+
TabWidth: 4
12+
13+
# Alinhamento de parâmetros
14+
AlignAfterOpenBracket: DontAlign
15+
BinPackParameters: true
16+
AllowAllParametersOfDeclarationOnNextLine: true
17+
AllowAllArgumentsOnNextLine: true
18+
19+
# Estilo de chaves (Allman - chaves em nova linha)
20+
BreakBeforeBraces: Allman
21+
22+
# Limite de colunas
23+
ColumnLimit: 0
24+
25+
# Alinhamentos
26+
AlignConsecutiveAssignments: false
27+
AlignConsecutiveDeclarations: false
28+
AlignTrailingComments: true
29+
30+
# Funções e statements curtos
31+
AllowShortFunctionsOnASingleLine: Empty
32+
AllowShortIfStatementsOnASingleLine: false
33+
AllowShortLoopsOnASingleLine: false
34+
AllowShortBlocksOnASingleLine: Empty
35+
36+
# Quebras de linha
37+
BreakBeforeBinaryOperators: NonAssignment
38+
BreakBeforeTernaryOperators: true
39+
BreakConstructorInitializers: BeforeColon
40+
41+
# Espaçamento
42+
SpaceAfterCStyleCast: false
43+
SpaceAfterLogicalNot: false
44+
SpaceBeforeAssignmentOperators: true
45+
SpaceBeforeParens: Never
46+
SpaceInEmptyParentheses: false
47+
48+
# Ponteiros e referências
49+
PointerAlignment: Right
50+
ReferenceAlignment: Right
51+
52+
# Includes
53+
SortIncludes: true
54+
IncludeBlocks: Preserve
55+
56+
# Comentários
57+
ReflowComments: true
58+
59+
# Macros e defines
60+
IndentPPDirectives: None
61+
62+
# Namespace
63+
NamespaceIndentation: None
64+
65+
# Access modifiers (public, private, protected)
66+
AccessModifierOffset: -4
67+
68+
# Continuação de linhas
69+
ContinuationIndentWidth: 16
70+
IndentWrappedFunctionNames: false
71+
AlignOperands: DontAlign
72+
73+
# Parâmetros específicos para C++
74+
Standard: c++17

.clang-tidy

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
# clang-tidy configuration for pgModeler
3+
# This file is read by clang-tidy during compilation (CMake build)
4+
# The .clangd file is read by clangd LSP for editor analysis
5+
6+
# Checks to enable/disable
7+
# Use 'category-*' to enable all checks in a category
8+
# Use '-check-name' to disable specific checks
9+
Checks: >
10+
-*,
11+
-misc-*,
12+
-misc-header-include-cycle,
13+
-misc-include-cleaner,
14+
clang-*,
15+
-clang-analyzer-optin.cplusplus.VirtualCall,
16+
-clang-analyzer-cplusplus.NewDeleteLeaks,
17+
-clang-analyzer-optin.core.EnumCastOutOfRange,
18+
-clang-analyzer-core.CallAndMessage,
19+
cplusplus.*,
20+
bugprone.*,
21+
misc-definitions-in-headers,
22+
misc-misleading-bidirectional,
23+
misc-misleading-identifier,
24+
misc-misplaced-const,
25+
misc-new-delete-overloads,
26+
misc-non-copyable-objects,
27+
misc-override-with-different-visibility,
28+
misc-redundant-expression,
29+
misc-static-assert,
30+
misc-throw-by-value-catch-by-reference,
31+
# misc-unconventional-assign-operator,
32+
misc-uniqueptr-reset-release,
33+
misc-unused-alias-decls,
34+
misc-unused-parameters,
35+
misc-unused-using-decls,
36+
misc-use-anonymous-namespace,
37+
misc-use-internal-linkage,
38+
modernize-loop-convert,
39+
modernize-return-braced-init-list,
40+
modernize-type-traits,
41+
modernize-use-bool-literals,
42+
modernize-use-equals-default,
43+
modernize-use-equals-delete,
44+
# modernize-use-nullptr,
45+
modernize-use-override,
46+
modernize-use-using,
47+
readability-delete-null-pointer,
48+
readability-duplicate-include,
49+
readability-else-after-return,
50+
readability-enum-initial-value,
51+
readability-inconsistent-declaration-parameter-name,
52+
# readability-magic-numbers,
53+
readability-math-missing-parentheses,
54+
# readability-misleading-indentation,
55+
readability-misplaced-array-index,
56+
readability-redundant-casting,
57+
readability-redundant-control-flow,
58+
readability-redundant-declaration,
59+
readability-redundant-function-ptr-dereference,
60+
readability-redundant-inline-specifier,
61+
readability-redundant-member-init,
62+
readability-redundant-parentheses,
63+
readability-redundant-preprocessor,
64+
readability-reference-to-constructed-temporary,
65+
# readability-static-accessed-through-instance,
66+
readability-static-definition-in-anonymous-namespace,
67+
readability-use-concise-preprocessor-directives,
68+
69+
# Treat warnings as errors (empty = no errors)
70+
WarningsAsErrors: ''
71+
72+
# Regex to filter which headers to analyze
73+
# Only analyze headers from pgModeler project directories
74+
# This regex matches absolute paths containing /pgmodeler/ followed by apps, libs, or priv-plugins
75+
HeaderFilterRegex: '.*/pgmodeler/(apps|libs|plugins|priv-plugins)/.*\.(h|hpp|cpp)$'
76+
77+
# Enable all checks by default in system headers (off for performance)
78+
SystemHeaders: false
79+
80+
# Format style for fix suggestions (follow .clang-format if available)
81+
FormatStyle: file

.clangd

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
CompileFlags:
2+
# Use compile_commands.json from cmake-build directory
3+
CompilationDatabase: cmake-build
4+
5+
Diagnostics:
6+
# clangd will read clang-tidy configuration from .clang-tidy file
7+
# This ensures consistency between editor analysis and build-time analysis
8+
ClangTidy:
9+
# No checks specified here - they are all defined in .clang-tidy
10+
# This allows a single source of truth for all clang-tidy configuration
11+
Add: []
12+
Remove: []
13+
14+
# Suppress warnings from system headers and dependencies
15+
UnusedIncludes: Strict
16+
17+
# clangd respects the HeaderFilterRegex from .clang-tidy
18+
# No additional suppression needed here
19+
Suppress: []
20+
21+
InlayHints:
22+
# Show inline hints for better code understanding
23+
Enabled: Yes
24+
ParameterNames: Yes
25+
DeducedTypes: Yes
26+
Designators: Yes
27+
28+
Hover:
29+
ShowAKA: Yes
30+
31+
Completion:
32+
AllScopes: Yes
33+
34+
Index:
35+
# Background indexing mode: Build (index as you build) or Skip (no background indexing)
36+
Background: Build
37+
38+
StandardLibrary: Yes

0 commit comments

Comments
 (0)