-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.clang-tidy
1160 lines (883 loc) · 36 KB
/
.clang-tidy
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# Copyright 2024 SECO Mind Srl
#
# SPDX-License-Identifier: CC0-1.0
---
HeaderFilterRegex: '.*'
Checks: >
-abseil-*,
-altera-*,
-android-*,
-boost-*,
bugprone-*,
cert-*,
clang-analyzer-*,
-concurrency-*,
cppcoreguidelines-*,
-darwin-*,
-fuchsia-*,
-google-*,
hicpp-*,
-linuxkernel-*,
llvm-*,
-llvmlibc-*,
misc-*,
modernize-*,
-mpi-*,
-objc-*,
-openmp-*,
performance-*,
portability-*,
readability-*,
-zircon-*,
-bugprone-easily-swappable-parameters,
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
-cppcoreguidelines-macro-to-enum,
-modernize-macro-to-enum,
-misc-include-cleaner
# NOTES:
# Most of the options for the checker readability-function-size have been disabled due to the
# logging macros used by zephyr. Such macros greatly increase the number of lines size of each
# function.
CheckOptions:
- { key: bugprone-misplaced-widening-cast.CheckImplicitCasts, value: true }
- { key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression, value: true }
- { key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison, value: true }
- { key: cppcoreguidelines-no-malloc.Allocations, value: "malloc,calloc" }
- { key: cppcoreguidelines-no-malloc.Deallocations, value: "free" }
- { key: cppcoreguidelines-no-malloc.Reallocations, value: "realloc" }
- { key: readability-const-return-type.IgnoreMacros, value: false }
- { key: readability-function-cognitive-complexity.Threshold, value: 25 }
- { key: readability-function-cognitive-complexity.DescribeBasicIncrements, value: false }
- { key: readability-function-cognitive-complexity.IgnoreMacros, value: true }
- { key: readability-function-size.LineThreshold, value: none }
- { key: readability-function-size.StatementThreshold, value: none }
- { key: readability-function-size.BranchThreshold, value: none }
- { key: readability-function-size.ParameterThreshold, value: 6 }
- { key: readability-function-size.NestingThreshold, value: none }
- { key: readability-function-size.VariableThreshold, value: none }
- { key: readability-identifier-length.MinimumVariableNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredVariableNames, value: "" }
- { key: readability-identifier-length.MinimumParameterNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredParameterNames, value: "" }
- { key: readability-identifier-length.MinimumLoopCounterNameLength, value: 3 }
- { key: readability-identifier-length.IgnoredLoopCounterNames, value: "^[ijk_]$" }
- { key: readability-identifier-naming.ConstantCase, value: lower_case }
- { key: readability-identifier-naming.ConstantParameterCase, value: lower_case }
- { key: readability-identifier-naming.ConstantPointerParameterCase, value: lower_case }
- { key: readability-identifier-naming.EnumCase, value: lower_case }
- { key: readability-identifier-naming.EnumConstantCase, value: UPPER_CASE }
- { key: readability-identifier-naming.FunctionCase, value: lower_case }
- { key: readability-identifier-naming.GlobalConstantCase, value: lower_case }
- { key: readability-identifier-naming.GlobalConstantPointerCase, value: lower_case }
- { key: readability-identifier-naming.GlobalFunctionCase, value: lower_case }
- { key: readability-identifier-naming.GlobalPointerCase, value: lower_case }
- { key: readability-identifier-naming.GlobalVariableCase, value: lower_case }
- { key: readability-identifier-naming.LocalConstantCase, value: lower_case }
- { key: readability-identifier-naming.LocalConstantPointerCase, value: lower_case }
- { key: readability-identifier-naming.LocalPointerCase, value: lower_case }
- { key: readability-identifier-naming.LocalVariableCase, value: lower_case }
- { key: readability-identifier-naming.MacroDefinitionCase, value: UPPER_CASE }
- { key: readability-identifier-naming.ParameterCase, value: lower_case }
- { key: readability-identifier-naming.PointerParameterCase, value: lower_case }
- { key: readability-identifier-naming.ScopedEnumConstantCase, value: lower_case }
- { key: readability-identifier-naming.StaticConstantCase, value: lower_case }
- { key: readability-identifier-naming.StaticVariableCase, value: lower_case }
- { key: readability-identifier-naming.StructCase, value: lower_case }
- { key: readability-identifier-naming.TypedefCase, value: lower_case }
- { key: readability-identifier-naming.TypedefSuffix, value: "_t" }
- { key: readability-identifier-naming.UnionCase, value: lower_case }
- { key: readability-identifier-naming.VariableCase, value: lower_case }
- { key: readability-redundant-declaration.IgnoreMacros, value: false }
- { key: readability-simplify-boolean-expr.ChainedConditionalReturn, value: true }
- { key: readability-simplify-boolean-expr.ChainedConditionalAssignment, value: true }
- { key: readability-simplify-boolean-expr.SimplifyDeMorgan, value: true }
- { key: readability-simplify-boolean-expr.SimplifyDeMorganRelaxed, value: true }
- { key: readability-uppercase-literal-suffix.IgnoreMacros, value: false }
####################################################################################################
### bugprone configuration ###
####################################################################################################
# bugprone-argument-comment
# Do not care.
# Could be useful, but we don't use names for our parameters calls.
# bugprone-assert-side-effect
# Enable it.
# bugprone-assignment-in-if-condition
# Enable it.
# bugprone-bad-signal-to-kill-thread and cert-pos44-c
# Do not care.
# We do not use multithreading.
# bugprone-bool-pointer-implicit-conversion
# Enable it.
# bugprone-branch-clone
# Enable it.
# bugprone-copy-constructor-init
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-dangling-handle
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-dynamic-static-initializers
# Do not care.
# This rule is specific for multithreading functionality. But it also should not influence our code.
# bugprone-easily-swappable-parameters
# Disable it.
# Requires lots of refactoring and could make the code more complex and less readable.
# bugprone-exception-escape
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-fold-init-type
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-forward-declaration-namespace
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-forwarding-reference-overload
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-implicit-widening-of-multiplication-result
# Enable it.
# Useful even though it's basically impossible in our code base.
# bugprone-inaccurate-erase
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-incorrect-roundings
# Enable it.
# bugprone-infinite-loop
# Enable it.
# If we want some infinite loop we should make an exception.
# bugprone-integer-division
# Enable it.
# bugprone-lambda-function-name
# Enable it.
# bugprone-macro-parentheses
# Enable it.
# Ensures macros have parenthesis around their content.
# It's mandatory for most code standards as macros without parenthesis produce different results
# depending on the position.
# bugprone-macro-repeated-side-effects
# Enable it.
# bugprone-misplaced-operator-in-strlen-in-alloc
# Enable it.
# bugprone-misplaced-pointer-arithmetic-in-alloc
# Enable it.
# bugprone-misplaced-widening-cast
# Enable it. Also set the CheckImplicitCasts flag to true.
# bugprone-move-forwarding-reference
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-multiple-statement-macro
# Enable it.
# bugprone-no-escape
# Do not care.
# We do not use escape.
# bugprone-not-null-terminated-result
# Enable it.
# bugprone-parent-virtual-call
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-posix-return
# Do not care.
# We do not use pthread_* and posix_* functions.
# bugprone-redundant-branch-condition
# Enable it.
# bugprone-reserved-identifier, cert-dcl37-c and cert-dcl51-cpp
# Enable it.
# bugprone-shared-ptr-array-mismatch
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-signal-handler, cert-msc54-cpp and cert-sig30-c
# Enable it.
# Keep the AsyncSafeFunctionSet option set as default to POSIX
# bugprone-signed-char-misuse and cert-str34-c
# Enable it.
# If needed add entries to the option list CharTypdefsToIgnore (if typedef new types)
# Keep the DiagnoseSignedUnsignedCharComparisons to default (true)
# bugprone-sizeof-container
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-sizeof-expression
# Enable it.
# Keep the default for: WarnOnSizeOfConstant (true), WarnOnSizeOfThis (true),
# WarnOnSizeOfCompareToConstant (true), WarnOnSizeOfPointerToAggregate (true)
# Set the WarnOnSizeOfIntegerExpression to true
# bugprone-spuriously-wake-up-functions, cert-con36-c and cert-con54-cpp
# Do not care.
# We do not use this functionality.
# bugprone-standalone-empty
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-string-constructor
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-string-integer-assignment
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-string-literal-with-embedded-nul
# Enable it.
# bugprone-stringview-nullptr
# Do not care.
# bugprone-suspicious-enum-usage
# Enable it.
# bugprone-suspicious-include
# Enable it.
# bugprone-suspicious-memory-comparison, cert-exp42-c and cert-flp37-c
# Enable it.
# bugprone-suspicious-memset-usage
# Enable it.
# bugprone-suspicious-missing-comma
# Enable it.
# Keep the following options to default: SizeThreshold, RatioThreshold, MaxConcatenatedTokens
# bugprone-suspicious-realloc-usage
# Enable it.
# bugprone-suspicious-semicolon
# Enable it.
# bugprone-suspicious-string-compare
# Enable it.
# strncmp() is quite counter intuitive, better to always =0 or !=0 explicitly.
# Keep the following options to default: WarnOnImplicitComparison, StringCompareLikeFunctions
# Set the WarnOnLogicalNotComparison option to true
# bugprone-swapped-arguments
# Enable it.
# bugprone-terminating-continue
# Enable it.
# bugprone-throw-keyword-missing
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-too-small-loop-variable
# Enable it.
# Keep the MagnitudeBitsUpperLimit option default
# bugprone-unchecked-optional-access
# Do not care.
# We do not use this functionality as it's specific of C++. It is specified as time consuming,
# might be an option to disable it.
# bugprone-undefined-memory-manipulation
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-undelegated-constructor
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-unhandled-exception-at-new
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-unhandled-self-assignment and cert-oop54-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-unsafe-functions, cert-msc24-c and cert-msc33-c
# Enable it.
# Keep the ReportMoreUnsafeFunctions option default
# bugprone-unused-raii
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-unused-return-value and cert-err33-c
# Enable it.
# Keep the CheckedFunctions option default
# bugprone-use-after-move
# Do not care.
# We do not use this functionality as it's specific of C++.
# bugprone-virtual-near-miss
# Do not care.
# We do not use this functionality as it's specific of C++.
### Aliases ###
# bugprone-narrowing-conversions -> cppcoreguidelines-narrowing-conversions
####################################################################################################
### cert configuration ###
####################################################################################################
# cert-dcl21-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-dcl50-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-dcl58-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-env33-c
# Enable it.
# cert-err33-c
# Enable it.
# Always using a function result is good practice.
# cert-err34-c
# Enable it.
# cert-err52-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-err58-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-err60-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-flp30-c
# Enable it.
# cert-mem57-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-msc50-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-msc51-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
# cert-oop57-cpp
# Enable it.
# Keep the options MemSetNames, MemCpyNames and MemCmpNames defaults.
# cert-oop58-cpp
# Do not care.
# We do not use this functionality as it's specific of C++.
### Aliases ###
# cert-con36-c -> bugprone-spuriously-wake-up-functions
# cert-con54-cpp -> bugprone-spuriously-wake-up-functions
# cert-dcl03-c -> misc-static-assert
# cert-dcl16-c -> readability-uppercase-literal-suffix
# cert-dcl37-c -> bugprone-reserved-identifier
# cert-dcl51-cpp -> bugprone-reserved-identifier
# cert-dcl54-cpp -> misc-new-delete-overloads
# cert-dcl59-cpp -> google-build-namespaces
# cert-err09-cpp -> misc-throw-by-value-catch-by-reference
# cert-err61-cpp -> misc-throw-by-value-catch-by-reference
# cert-exp42-c -> bugprone-suspicious-memory-comparison
# cert-fio38-c -> misc-non-copyable-objects
# cert-flp37-c -> bugprone-suspicious-memory-comparison
# cert-msc24-c -> bugprone-unsafe-functions
# cert-msc30-c -> cert-msc50-cpp
# cert-msc32-c -> cert-msc51-cpp
# cert-msc33-c -> bugprone-unsafe-functions
# cert-msc54-cpp -> bugprone-signal-handler
# cert-oop11-cpp -> performance-move-constructor-init
# cert-oop54-cpp -> bugprone-unhandled-self-assignment
# cert-pos44-c -> bugprone-bad-signal-to-kill-thread
# cert-pos47-c -> concurrency-thread-canceltype-asynchronous
# cert-sig30-c -> bugprone-signal-handler
# cert-str34-c -> bugprone-signed-char-misuse
####################################################################################################
### clang-analyzer configuration ###
####################################################################################################
# clang-analyzer-core.DynamicTypePropagation
# Enable it.
# clang-analyzer-core.uninitialized.CapturedBlockVariable
# Enable it.
# clang-analyzer-cplusplus.InnerPointer
# Do not care.
# We do not use this functionality as it's specific of C++.
# clang-analyzer-nullability.NullableReturnedFromNonnull
# Enable it.
# clang-analyzer-optin.osx.OSObjectCStyleCast
# Do not care.
# We do not use this functionality.
# clang-analyzer-optin.performance.GCDAntipattern
# Do not care.
# We do not use this functionality.
# clang-analyzer-optin.performance.Padding
# Enable it.
# clang-analyzer-optin.portability.UnixAPI
# Do not care.
# We do not use this functionality.
# clang-analyzer-osx.*
# Do not care.
# We do not use this functionality.
# clang-analyzer-valist.CopyToSelf
# Enable it.
# clang-analyzer-valist.Uninitialized
# Enable it.
# clang-analyzer-valist.Unterminated
# Enable it.
### Aliases to static analyzer rules ###
# clang-analyzer-core.* -> 1.1.1.*. core.*
# Enable it.
# All those warnings are relevant and do not require custom options.
# clang-analyzer-cplusplus.* -> 1.1.2.*. cplusplus.*
# Do not care.
# We do not use this functionality as it's specific of C++.
# clang-analyzer-deadcode.DeadStores -> 1.1.3.1. deadcode.DeadStores
# Enable it.
# Avoids store and not use operations.
# clang-analyzer-nullability.* -> 1.1.4.*. nullability.NullPassedToNonnull
# Do not care.
# We do not use this functionality as it's specific of ObjC.
# clang-analyzer-optin.cplusplus.UninitializedObject -> 1.1.5.1. optin.cplusplus.UninitializedObject
# Do not care.
# We do not use this functionality as it's specific of C++.
# clang-analyzer-optin.cplusplus.VirtualCall -> 1.1.5.2. optin.cplusplus.VirtualCall
# Do not care.
# We do not use this functionality as it's specific of C++.
# clang-analyzer-optin.mpi.MPI-Checker -> 1.1.5.3. optin.mpi.MPI-Checker
# Do not care.
# We do not use this functionality.
# clang-analyzer-optin.osx.* -> 1.1.5.4/5. optin.osx.*
# Do not care.
# We do not use this functionality.
# clang-analyzer-osx.* -> 1.1.8.*. osx.*
# Do not care.
# We do not use this functionality.
# clang-analyzer-security.FloatLoopCounter -> 1.1.6.1. security.FloatLoopCounter
# Enable it.
# clang-analyzer-security.insecureAPI.* -> 1.1.6.*. security.insecureAPI.*
# Enable it.
# clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling -> 1.1.6.13. security.insecureAPI.DeprecatedOrUnsafeBufferHandling
# Disable it.
# _s functions are not supported in GCC.
# clang-analyzer-unix.* -> 1.1.7.*. unix.*
# Enable it.
####################################################################################################
### cppcoreguidelines configuration ###
####################################################################################################
# cppcoreguidelines-avoid-capture-default-when-capturing-this
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-avoid-const-or-ref-data-members
# Enable it.
# cppcoreguidelines-avoid-do-while
# Enable it.
# Keep IgnoreMacros option to default (false)
# cppcoreguidelines-avoid-goto
# Enable it.
# cppcoreguidelines-avoid-non-const-global-variables
# Disable it.
# Supposedly it finds global variables non constant. However, it does not seems to handle correctly
# `static` variables. Would be very useful if it worked correctly.
# cppcoreguidelines-avoid-reference-coroutine-parameters
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-init-variables
# Disable it.
# We often pass non initialized variables to functions (as pointers) to be used as output.
# If we want to follow this we must always initialize variables even when not subsequently used.
# cppcoreguidelines-interfaces-global-init
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-macro-usage
# Enable it.
# Leave options AllowedRegexp, CheckCapsOnlyand and IgnoreCommandLineMacros as default.
# cppcoreguidelines-narrowing-conversions
# Enable it.
# Narrowing conversion can lead to errors. Better to do an explicit cast.
# Leave options WarnOnIntegerNarrowingConversion, WarnOnIntegerToFloatingPointNarrowingConversion,
# WarnOnFloatingPointNarrowingConversion, WarnWithinTemplateInstantiation,
# WarnOnEquivalentBitWidth, IgnoreConversionFromTypes, PedanticMode to default.
# cppcoreguidelines-no-malloc
# Enable it.
# Configure some of the options.
# cppcoreguidelines-owning-memory
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-prefer-member-initializer
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-pro-*
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-slicing
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-special-member-functions
# Do not care.
# We do not use this functionality as it's specific of C++.
# cppcoreguidelines-virtual-class-destructor
# Do not care.
# We do not use this functionality as it's specific of C++.
### Aliases ###
# cppcoreguidelines-avoid-c-arrays -> modernize-avoid-c-arrays
# cppcoreguidelines-avoid-magic-numbers -> readability-magic-numbers
# cppcoreguidelines-c-copy-assignment-signature -> misc-unconventional-assign-operator
# cppcoreguidelines-explicit-virtual-functions -> modernize-use-override
# cppcoreguidelines-macro-to-enum -> modernize-macro-to-enum
# cppcoreguidelines-non-private-member-variables-in-classes -> misc-non-private-member-variables-in-classes
####################################################################################################
### hicpp configuration ###
####################################################################################################
# hicpp-exception-baseclass
# Do not care.
# We do not use this functionality as it's specific of C++.
# hicpp-multiway-paths-covered
# Enable it.
# hicpp-no-assembler
# Enable it.
# hicpp-signed-bitwise
# Enable it.
# Bitwise operations on signed number lead to errors.
# Keep IgnorePositiveIntegerLiterals to the default (false)
### Aliases ###
# hicpp-avoid-goto -> cppcoreguidelines-avoid-goto
# hicpp-avoid-c-arrays -> modernize-avoid-c-arrays
# hicpp-braces-around-statements -> readability-braces-around-statements
# hicpp-deprecated-headers -> modernize-deprecated-headers
# hicpp-explicit-conversions -> google-explicit-constructor
# hicpp-function-size -> readability-function-size
# hicpp-invalid-access-moved -> bugprone-use-after-move
# hicpp-member-init -> cppcoreguidelines-pro-type-member-init
# hicpp-move-const-arg -> performance-move-const-arg
# hicpp-named-parameter -> readability-named-parameter
# hicpp-new-delete-operators -> misc-new-delete-overloads
# hicpp-no-array-decay -> cppcoreguidelines-pro-bounds-array-to-pointer-decay
# hicpp-no-malloc -> cppcoreguidelines-no-malloc
# hicpp-noexcept-move -> performance-noexcept-move-constructor
# hicpp-special-member-functions -> cppcoreguidelines-special-member-functions
# hicpp-static-assert -> misc-static-assert
# hicpp-undelegated-constructor -> bugprone-undelegated-constructor
# hicpp-uppercase-literal-suffix -> readability-uppercase-literal-suffix
# hicpp-use-auto -> modernize-use-auto
# hicpp-use-emplace -> modernize-use-emplace
# hicpp-use-equals-default -> modernize-use-equals-default
# hicpp-use-equals-delete -> modernize-use-equals-delete
# hicpp-use-noexcept -> modernize-use-noexcept
# hicpp-use-nullptr -> modernize-use-nullptr
# hicpp-use-override -> modernize-use-override
# hicpp-vararg -> cppcoreguidelines-pro-type-vararg
####################################################################################################
### llvm configuration ###
####################################################################################################
# llvm-header-guard
# Enable it.
# We are compatible with the LLVM style.
# llvm-include-order
# Enable it.
# llvm-namespace-comment
# Do not care.
# We do not use this functionality as it's specific of C++.
# llvm-prefer-isa-or-dyn-cast-in-conditionals
# Do not care.
# We do not use this functionality.
# llvm-prefer-register-over-unsigned
# Enable it.
# llvm-twine-local
# Do not care.
# We do not use this functionality.
### Aliases ###
# llvm-else-after-return -> readability-else-after-return
# llvm-qualified-auto -> readability-qualified-auto
####################################################################################################
### misc configuration ###
####################################################################################################
# misc-confusable-identifiers
# Enable it.
# misc-const-correctness
# Do not care.
# This check would be great, but it does not run on C code (as described in the clang-tidy docs).
# misc-definitions-in-headers
# Enable it.
# misc-misleading-bidirectional
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-misleading-identifier
# Enable it.
# misc-misplaced-const
# Enable it.
# misc-new-delete-overloads
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-no-recursion
# Enable it.
# misc-non-copyable-objects
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-non-private-member-variables-in-classes
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-redundant-expression
# Enable it.
# misc-static-assert
# Enable it.
# misc-throw-by-value-catch-by-reference
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-unconventional-assign-operator
# Enable it.
# misc-uniqueptr-reset-release
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-unused-alias-decls
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-unused-parameters
# Enable it.
# Helps avoiding dangling parameters.
# misc-unused-using-decls
# Do not care.
# We do not use this functionality as it's specific of C++.
# misc-use-anonymous-namespace
# Do not care.
# We do not use this functionality as it's specific of C++.
####################################################################################################
### modernize configuration ###
####################################################################################################
# modernize-avoid-bind
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-avoid-c-arrays
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-concat-nested-namespaces
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-deprecated-headers
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-deprecated-ios-base-aliases
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-loop-convert
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-macro-to-enum
# Disable it.
# Would be useful to avoid list of defines. However, its quite broken.
# modernize-make-shared
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-make-unique
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-pass-by-value
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-raw-string-literal
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-redundant-void-arg
# Enable it.
# modernize-replace-auto-ptr
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-replace-disallow-copy-and-assign-macro
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-replace-random-shuffle
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-return-braced-init-list
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-shrink-to-fit
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-unary-static-assert
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-auto
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-bool-literals
# Enable it.
# modernize-use-default-member-init
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-emplace
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-equals-default
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-noexcept
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-nullptr
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-override
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-trailing-return-type
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-transparent-functors
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-uncaught-exceptions
# Do not care.
# We do not use this functionality as it's specific of C++.
# modernize-use-using
# Do not care.
# We do not use this functionality as it's specific of C++.
####################################################################################################
### performance configuration ###
####################################################################################################
# performance-faster-string-find
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-for-range-copy
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-implicit-conversion-in-loop
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-inefficient-algorithm
# Enable it.
# performance-inefficient-string-concatenation
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-inefficient-vector-operation
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-move-const-arg
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-move-constructor-init
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-no-automatic-move
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-no-int-to-ptr
# Enable it.
# performance-noexcept-move-constructor
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-trivially-destructible
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-type-promotion-in-math-fn
# Enable it.
# performance-unnecessary-copy-initialization
# Do not care.
# We do not use this functionality as it's specific of C++.
# performance-unnecessary-value-param
# Do not care.
# We do not use this functionality as it's specific of C++.
####################################################################################################
### portability configuration ###
####################################################################################################
# portability-restrict-system-includes
# Do not care.
# We do not blacklist the system includes.
# portability-simd-intrinsics
# Do not care.
# We do not use this functionality as it's specific of C++.
# portability-std-allocator-const
# Do not care.
# We do not use this functionality as it's specific of C++.
####################################################################################################
### readability configuration ###
####################################################################################################
# readability-avoid-const-params-in-decls
# Enable it.
# readability-braces-around-statements
# Enable it.
# readability-const-return-type
# Enable it.
# Configure some of the options.
# readability-container-contains
# Do not care.
# We do not use this functionality as it's specific of C++.
# readability-container-data-pointer
# Do not care.