mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-13 01:05:44 +00:00
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:
@@ -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
|
||||
%}
|
||||
|
||||
%{
|
||||
|
||||
@@ -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
|
||||
%}
|
||||
|
||||
%{
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
// This is used to conditionally stop visual assist from parsing swig-generated files
|
||||
|
||||
#define VA_IGNORE_REST_OF_FILE _asm {
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user