Skip to content
Snippets Groups Projects
  1. May 29, 2017
  2. May 18, 2017
  3. May 09, 2017
  4. May 04, 2017
    • David Gobbi's avatar
      Fix cppcheck complaint for lex file. · fc63401d
      David Gobbi authored
      The cppcheck warnings were as follows:
      style: struct member 'yy_trans_info::yy_verify' is never used.
      style: struct member 'yy_trans_info::yy_nxt' is never used.
      fc63401d
  5. May 03, 2017
  6. May 01, 2017
  7. Apr 21, 2017
  8. Apr 20, 2017
  9. Apr 13, 2017
    • Sean McBride's avatar
      Fixed various warnings from new cppcheck 1.78 · 25058c30
      Sean McBride authored
      Types of warnings:
      - mismatch between parameters names in declaration vs definition
      - make certain parameters references, or const references
      - checking array index after its use
      - prefer preincrement
      - change return type of operator=
      
      There are some very minor API chages here (const/reference).
      25058c30
    • David Gobbi's avatar
      Fix wrapper tool error for '//' file arguments. · 8f2035e6
      David Gobbi authored
      First, here is some background on CLI response-file processing.
      A response-file argument begins with '@', e.g. @/path/to/file.args,
      and the first character (the '@') is stripped from the argument to
      get the path to the response file.
      
      Due to a serious bug in the wrapper tools, all arguments were checked
      to see if they provided response files, regardless of whether the
      argument started with '@'.  For example, for the argument '-o', the
      the wrapper tools would attempt to read a response file called 'o' and,
      since the file didn't exist, it would fall back to correctly processing
      the argument as '-o'.
      
      For an arg like '//path/to/file.cxx', however, if '/path/to/file.cxx'
      existed then it would be read as a response file, and the wrapper tool
      would fail.
      8f2035e6
    • Sean McBride's avatar
      Wrapped VTK___INT64 usage in VTK_LEGACY_REMOVE · bc2e2c5f
      Sean McBride authored
      These are already informally commented as legacy, this just
      allows them to be truly compiled-away.  Will help totally removing them one day,
      which is desirable because they violate C++ naming rules by having
      2 or more adjacent underscores.
      bc2e2c5f
  10. Apr 08, 2017
  11. Apr 06, 2017
  12. Mar 29, 2017
    • David Gobbi's avatar
      Fix vtkWrapTcl assert on isprint for Visual Studio. · fdb935f3
      David Gobbi authored
      If an out-of-range value is sent to isprint(), then programs generated
      by Visual Studio 2010 and later will assert.  I suspect that it does this
      because the alternative would be to guess the encoding and potentially
      give an incorrect answer, which could compromise the security of the
      executable.
      fdb935f3
  13. Mar 17, 2017
  14. Mar 14, 2017
  15. Mar 08, 2017
  16. Jan 23, 2017
    • David Gobbi's avatar
      16849: Wrap classes that have no copy constructor. · 4b6765d3
      David Gobbi authored
      Previously, if a class in VTK had no copy constructor it would not be
      wrapped (unless it was derived from vtkObjectBase, which always has the
      copy constructor disabled).
      
      Examples of classes that are now wrapped are vtkFloatingPointException
      (which only has static methods and is never actually instantiated) and
      RAII classes like vtkSimpleMutexLock that lack copy constructors for
      obvious reasons.
      4b6765d3
  17. Jan 19, 2017
  18. Jan 18, 2017
  19. Jan 17, 2017
  20. Jan 16, 2017
    • Robert Maynard's avatar
      Convert vtk over to using VTK_OVERRIDE · 3f7a2769
      Robert Maynard authored
      3f7a2769
    • Michka Popoff's avatar
      ENH: Do not link against libpython when possible · 5668595e
      Michka Popoff authored
      This is similar to what is already done in ITK and SimpleITK.
      
      The new vtkTargetLinkLibrariesWithDynamicLookup.cmake file is slightly modified copy from
      ITK/CMake/itkTargetLinkLibrariesWithDynamicLookup.cmake
      The explanation of what this patch tries to achieve is documented in this file.
      
      A new argument is introduced, called OPTIONAL_PYTHON_LINK.
      When used, the module will be optionally be linked against libpython.
      In the module.cmake files, most vtkPython dependencies were moved to COMPILE_DEPENDS, so that libpython is not added to the target_link_libraries() call.
      
      The vtkPython is explicitely linked against the python libraries, as this is a python executable.
      
      Also, the find_package calls for the PythonLibs were made optional when possible.
      
      The XDMF3 project was not updated, this will need to be done separately if weak linking is wished for that project.
      
      Fixes: #16068
      5668595e
  21. Jan 14, 2017
    • Sean McBride's avatar
      Fixed various cppcheck warnings, suppressed others · 930c68bd
      Sean McBride authored
      - Avoid cppcheck false positive (due to pointer aliasing confusion). Reworked the code so g doesn’t alias gTmp, so that cppcheck doesn’t think that gTmp is used unititialized.
      - added seemingly missing break
      - removed store to local variable from a macro
      - fixed other warnings.
      930c68bd
  22. Jan 10, 2017
    • Sean McBride's avatar
      Fixed many trivial cppcheck 1.77 warnings · ea372f58
      Sean McBride authored
      These are all new warnings vs the previous version, 1.76.1
      
      No real bugs found/fixed here.
      
      Most are either overwriting a never-read variable value,
      usually only at intialiazation, or a useless comparison.
      
      In a couple of places, threw in a const or did other minor reworking.
      ea372f58
  23. Jan 05, 2017
  24. Jan 03, 2017
  25. Dec 09, 2016
  26. Dec 05, 2016
    • Sean McBride's avatar
      Change Borland hacks to be for old compliers only · bcee8f31
      Sean McBride authored
      VTK has several Borland-specific workarounds, but I’m
      fairly sure they are all for ancient compilers.
      So this changes makes them all apply to older-than-newest
      versions only.
      This will make it easier to remove them entirely one day,
      as currently it’s impossible to know if they are needed for all, old, or new versions.
      bcee8f31
    • David Gobbi's avatar
      Avoid expanding macro _WCHAR_T_DEFINED · 140ba599
      David Gobbi authored
      Apparently expansion of this macro (which is sometimes defined on Win32)
      is undefined and causes a compile error.
      140ba599
    • David Gobbi's avatar
      Add many more predefined wrapper macros · 0f81b721
      David Gobbi authored
      This is mainly for kwiml, which was added to VTK 7.1.  For type sizes,
      endianness, etc. kwiml checks compiler macros instead of using cmake
      to generate config headers via try-compile.  Hence, the wrappers must
      define all the macros that the native compiler defines.
      0f81b721
  27. Dec 04, 2016
  28. Dec 01, 2016
    • David Gobbi's avatar
      Expand typedefs for the Tcl and Java wrappers · 858c6ed5
      David Gobbi authored
      Even though typedefs have been handled by the Python wrappers ever since
      VTK 6.0, this feature was never enabled for the Java and Tcl wrappers.
      This problem was noticed when the vtkMTimeType typedef was introduced,
      since it caused MTime methods to disappear from the Java/Tcl wrappers.
      858c6ed5
  29. Nov 18, 2016
  30. Nov 11, 2016
Loading