mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Check docstrings in the qrenderdoc bindings as well
This commit is contained in:
@@ -69,6 +69,25 @@ CONTAINER_TYPEMAPS(QMap)
|
||||
}
|
||||
};
|
||||
|
||||
%header %{
|
||||
#include <set>
|
||||
#include "Code/pyrenderdoc/document_check.h"
|
||||
%}
|
||||
|
||||
%init %{
|
||||
PyDateTime_IMPORT;
|
||||
|
||||
// verify that docstrings aren't duplicated, which is a symptom of missing DOCUMENT()
|
||||
// macros around newly added classes/members.
|
||||
// For enums, verify that all constants are documented in the parent docstring
|
||||
#if !defined(RELEASE)
|
||||
static bool doc_checked = false;
|
||||
|
||||
if(!doc_checked)
|
||||
{
|
||||
doc_checked = true;
|
||||
|
||||
check_docstrings(swig_type_initial, sizeof(swig_type_initial)/sizeof(swig_type_initial[0]));
|
||||
}
|
||||
#endif
|
||||
%}
|
||||
|
||||
Reference in New Issue
Block a user