Skip to content

Commit 19ee48d

Browse files
committed
Add Qt to misc-include-cleaner.IgnoreHeaders
Qt modern headers are often implemented in terms of legacy headers and give false positives. We don't want to include the legacy names. Signed-off-by: Matt Liberty <[email protected]>
1 parent c6d21db commit 19ee48d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.clang-tidy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ Checks: >
6060
-misc-use-anonymous-namespace,
6161
6262
CheckOptions:
63-
- key: google-runtime-int.TypeSuffix
64-
value: _t
65-
63+
- key: google-runtime-int.TypeSuffix
64+
value: _t
65+
- key: misc-include-cleaner.IgnoreHeaders
66+
value: '.*/QtCore/.*;.*/QtGui/.*;.*/QtWidgets/.*'
67+
6668
# All modules but sta
6769
# Exclude build as there is too much noise from swig generated code
6870
HeaderFilterRegex: "(?!build/.*)/(ant|cgt|cts|cut|dbSta|dft|dpl|drt|dst|est|exa|fin|gpl|grt|gui|ifp|mpl|odb|ord|pad|par|pdn|ppl|psm|rcx|ram|rmp|rsz|stt|tap|upf|utl)/.*"

0 commit comments

Comments
 (0)