1- # HyperDAG clang-tidy Configuration
1+ # MetaGraph clang-tidy Configuration
22# EXTREME quality standards - ALL warnings are errors
33
44# Enable comprehensive check coverage
5- Checks : '
6- *,
7- -abseil-*,
8- -altera-*,
9- -android-*,
10- -darwin-*,
11- -fuchsia-*,
12- -google-build-using-namespace,
13- -google-readability-avoid-underscore-in-googletest-name,
14- -google-readability-todo,
15- -hicpp-named-parameter,
16- -hicpp-no-array-decay,
17- -hicpp-signed-bitwise,
18- -llvm-header-guard,
19- -llvmlibc-*,
20- -modernize-use-trailing-return-type,
21- -readability-identifier-length,
22- -zircon-*
23- '
5+ Checks : >
6+ -*,
7+ bugprone-*,
8+ cert-*,
9+ clang-analyzer-*,
10+ concurrency-*,
11+ misc-*,
12+ performance-*,
13+ portability-*,
14+ readability-*,
15+ -readability-magic-numbers
2416
2517# ALL warnings become compilation errors - zero tolerance
2618WarningsAsErrors : ' *'
@@ -30,7 +22,7 @@ HeaderFilterRegex: '(include|src)/.*\.(h|c)$'
3022
3123# Check configuration
3224CheckOptions :
33- # Naming conventions for HyperDAG
25+ # Naming conventions for MetaGraph
3426 - key : readability-identifier-naming.TypedefCase
3527 value : lower_case
3628 - key : readability-identifier-naming.TypedefSuffix
@@ -44,27 +36,27 @@ CheckOptions:
4436 - key : readability-identifier-naming.EnumConstantCase
4537 value : UPPER_CASE
4638 - key : readability-identifier-naming.EnumConstantPrefix
47- value : ' HYPERDAG_ '
39+ value : ' METAGRAPH_ '
4840 - key : readability-identifier-naming.FunctionCase
4941 value : lower_case
5042 - key : readability-identifier-naming.FunctionPrefix
51- value : ' hyperdag_ '
43+ value : ' metagraph_ '
5244 - key : readability-identifier-naming.VariableCase
5345 value : lower_case
5446 - key : readability-identifier-naming.ParameterCase
5547 value : lower_case
5648 - key : readability-identifier-naming.MacroDefinitionCase
5749 value : UPPER_CASE
5850 - key : readability-identifier-naming.MacroDefinitionPrefix
59- value : ' HYPERDAG_ '
51+ value : ' METAGRAPH_ '
6052 - key : readability-identifier-naming.GlobalConstantCase
6153 value : UPPER_CASE
6254 - key : readability-identifier-naming.GlobalConstantPrefix
63- value : ' HYPERDAG_ '
64-
55+ value : ' METAGRAPH_ '
56+
6557 # Function complexity limits
6658 - key : readability-function-cognitive-complexity.Threshold
67- value : ' 15 '
59+ value : ' 25 '
6860 - key : readability-function-size.LineThreshold
6961 value : ' 50'
7062 - key : readability-function-size.StatementThreshold
@@ -74,34 +66,34 @@ CheckOptions:
7466 - key : readability-function-size.ParameterThreshold
7567 value : ' 6'
7668 - key : readability-function-size.NestingThreshold
77- value : ' 4 '
78-
69+ value : ' 5 '
70+
7971 # Memory safety
8072 - key : bugprone-suspicious-string-compare.WarnOnImplicitComparison
8173 value : true
8274 - key : bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
8375 value : true
8476 - key : cert-err33-c.CheckedFunctions
8577 value: '::aligned_alloc;::calloc;::clock;::fclose;::ferror;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fprintf;::fputc;::fputs;::fputwc;::fread;::freopen;::fscanf;::fseek;::fsetpos;::ftell;::fwprintf;::fwrite;::fwscanf;::getc;::getchar;::gets;::getwc;::getwchar;::gmtime;::localtime;::malloc;::mbrtowc;::mbsrtowcs;::mbstowcs;::memchr;::mktime;::printf;::putc;::putchar;::puts;::putwc;::putwchar;::raise;::realloc;::remove;::rename;::scanf;::setlocale;::setvbuf;::signal;::snprintf;::sprintf;::sscanf;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtol;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swscanf;::time;::tmpfile;::tmpnam;::ungetc;::ungetwc;::vfprintf;::vfscanf;::vfwprintf;::vfwscanf;::vprintf;::vscanf;::vsnprintf;::vsprintf;::vsscanf;::vswprintf;::vswscanf;::vwprintf;::vwscanf;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstol;::wcstoll;::wcstombs;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wmemchr;::wprintf;::wscanf'
86-
78+
8779 # Performance
8880 - key : performance-move-const-arg.CheckTriviallyCopyableMove
8981 value : false
9082 - key : performance-no-automatic-move.AllowedTypes
9183 value : ' '
92-
84+
9385 # Modernize to C23
9486 - key : modernize-replace-auto-ptr.IncludeStyle
9587 value : google
9688 - key : modernize-use-auto.MinTypeNameLength
9789 value : ' 5'
9890 - key : modernize-use-auto.RemoveStars
9991 value : false
100-
92+
10193 # Portability
10294 - key : portability-restrict-system-includes.Includes
10395 value : ' *'
104-
96+
10597 # Thread safety
10698 - key : misc-misplaced-const.CheckPrimitiveCasts
10799 value : true
@@ -113,13 +105,8 @@ SystemHeaders: false
113105UseColor : true
114106
115107# Enable all available experimental checks
116- ExtraArgs :
117- - ' -std=c23'
118- - ' -Wextra'
119- - ' -Wall'
120- - ' -Wpedantic'
121- - ' -Wno-unused-parameter' # Common in function pointer interfaces
122- - ' -Wno-gnu-zero-variadic-macro-arguments' # Allow empty __VA_ARGS__
108+ # Note: When using compilation database, extra args should be passed via command line
109+ # to avoid being interpreted as file paths
123110
124111# Performance: run checks in parallel
125- # Parallel: true # Not supported in this clang-tidy version
112+ # Parallel: true # Not supported in this clang-tidy version
0 commit comments