Help visual assist ignore/skip parsing generated SWIG code

* This didn't used to be as much of an issue but it seems
This commit is contained in:
baldurk
2021-05-18 12:29:20 +01:00
parent 16b82d1689
commit b8d10c4875
4 changed files with 26 additions and 3 deletions
+9 -2
View File
@@ -9,9 +9,16 @@
#define DOCUMENT4(text1, text2, text3, text4) %feature("docstring") text1 text2 text3 text4
%begin %{
#undef slots
#undef slots
#define SWIG_GENERATED
#ifndef SWIG_GENERATED
#define SWIG_GENERATED
#endif
// we want visual assist to ignore this file, because it's a *lot* of generated code and has no
// useful results. This macro does nothing on normal builds, but is defined to _asm { in va_stdafx.h
#define VA_IGNORE_REST_OF_FILE
VA_IGNORE_REST_OF_FILE
%}
%{
+10 -1
View File
@@ -57,7 +57,16 @@
%rename("AddChild") "SDObject::DuplicateAndAddChild";
%begin %{
#undef slots
#undef slots
#ifndef SWIG_GENERATED
#define SWIG_GENERATED
#endif
// we want visual assist to ignore this file, because it's a *lot* of generated code and has no
// useful results. This macro does nothing on normal builds, but is defined to _asm { in va_stdafx.h
#define VA_IGNORE_REST_OF_FILE
VA_IGNORE_REST_OF_FILE
%}
%{
+3
View File
@@ -0,0 +1,3 @@
// This is used to conditionally stop visual assist from parsing swig-generated files
#define VA_IGNORE_REST_OF_FILE _asm {
+4
View File
@@ -3,3 +3,7 @@
// not being found properly.
#define QT_NAMESPACE
// This is used to conditionally stop visual assist from parsing swig-generated files
#define VA_IGNORE_REST_OF_FILE _asm {