mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 17:02:51 +08:00
Exclude headers generated by wayland-scanner from code checks
These files contain TABs, and NULLs, but we don't care about them.
This commit is contained in:
@@ -57,6 +57,7 @@ jobs:
|
||||
':!build/upmake' \
|
||||
':!build/vcxproj-clone' \
|
||||
':!docs/doxygen/doxygen-awesome-css/*' \
|
||||
':!include/wx/gtk/private/wayland/*.h' \
|
||||
':!misc/languages/data/unicode/*.xml' \
|
||||
':!samples/widgets/widgets.bkl' \
|
||||
':!tests/test.bkl' \
|
||||
@@ -97,6 +98,7 @@ jobs:
|
||||
git fetch --depth=1 origin master
|
||||
if git diff origin/master \
|
||||
':**.h' ':**.cpp' \
|
||||
':!include/wx/gtk/private/wayland/*.h' \
|
||||
| grep -E '^\+.*(wxOVERRIDE|wxNOEXCEPT|wxMEMBER_DELETE|__WXFUNCTION__|[^"_@A-Za-z0-9]NULL([- ,;()+*/%&=!?]|$))'; then
|
||||
echo "::error ::Please use C++11 equivalents of the deprecated macros in the new code."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user