qdoc: Exclude platform dependent .cpp files
clangqdoc can't parse platform dependent source files because they try to include platform dependent system include files. e.g., When clangqdoc is run on macOS, the Windows system include files are not available. This change adds all the platform dependent .cpp files to the excludefiles config variable. This means that qdoc comments are no longer allowed in the excluded files. There shouldn't be any documentation in these files anyway. Platform dependent documentation should be in .qdoc files or in generic .cpp files that do not try to include platform dependent include files. Note that .m and .mm files are excluded programatically in qdoc. Change-Id: I8f93fe9f5604e558b3df8c8cc8ee723010bf885d Reviewed-by: Martin Smith <martin.smith@qt.io>
This commit is contained in:
parent
740ff1b881
commit
1885952c23
@ -219,3 +219,21 @@ Cpp.ignoredirectives += \
|
||||
# Qt 6: Remove
|
||||
falsehoods += \
|
||||
"QT_VERSION >= QT_VERSION_CHECK\\(6,0,0\\)"
|
||||
|
||||
|
||||
excludefiles += \
|
||||
"*_p.cpp" \
|
||||
"*_posix.cpp" \
|
||||
"*_android.cpp" \
|
||||
"*_win.cpp" \
|
||||
"*_icu.cpp" \
|
||||
"*_msvc.cpp" \
|
||||
"*_wince.cpp" \
|
||||
"*_winrt.cpp" \
|
||||
"*_mac.cpp" \
|
||||
"*_macx.cpp" \
|
||||
"*_unix.cpp" \
|
||||
"*_udev.cpp" \
|
||||
"*_vxworks.cpp" \
|
||||
"*_darwin.cpp" \
|
||||
"*_x11.cpp"
|
||||
|
Loading…
Reference in New Issue
Block a user