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