Ver Fonte

filter out .mm files

David Rose há 16 anos atrás
pai
commit
25241ed6e9
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      dtool/src/interrogate/interrogateBuilder.cxx

+ 5 - 0
dtool/src/interrogate/interrogateBuilder.cxx

@@ -947,6 +947,11 @@ should_include(const string &filename) const {
     return false;
     return false;
   }
   }
 
 
+  // Ignore Objective-C files too.
+  if (filename.length() > 3 && filename.substr(filename.length() - 3) == ".mm") {
+    return false;
+  }
+
   // Otherwise, no problem.
   // Otherwise, no problem.
   return true;
   return true;
 }
 }