Skip to content
Snippets Groups Projects
  1. Apr 20, 2022
    • Tobias Triffterer's avatar
      Version 1.1 · 15ced184
      Tobias Triffterer authored
      This adds some improvements to the library:
      
      – Proper visibility attributrs for all symbols
      – Defaulting standard functions whereever possible
      – Code cleanup
      – Bugfixes
      – Fixing typos in the documentation
      – Initialize internal structures properly
      – Mark derived virtual Methods as “override”
      – Free memory allocated by LinuxCanBusFinder also in case of an error
      – Put all classes of the library into a namespace
      – Use Doxygen's built-in STL support
      – Raise C++ standard to C++17
      – Add Library Prefix to Include Guards
    • Tobias Triffterer's avatar
      Update Office Address · dea7c7c0
      Tobias Triffterer authored
      I'm in a new office now, so the address is updated...
      Verified
      dea7c7c0
  2. Mar 01, 2022
  3. Feb 16, 2022
    • Tobias Triffterer's avatar
      Raise C++ Standard to C++17 · 746d1530
      Tobias Triffterer authored
      All superprojects explicitly define C++17 as a requirement in their
      CMake files, so the list of compile features here is updated.
      Verified
      746d1530
    • Tobias Triffterer's avatar
      Some more Code Cleanup · 71c7dfc6
      Tobias Triffterer authored
      Including the header files of CAN Bus Toolbox in the analysis of the
      superproject revealed some more issues which are hereby fixed or
      nolint'ed.
      
      * cppcoreguidelines-macro-usage
      * modernize-use-nodiscard
      * readability-uppercase-literal-suffix
      Verified
      71c7dfc6
  4. Feb 15, 2022
    • Tobias Triffterer's avatar
      Replace std::bind with Lambdas · 559f5ba8
      Tobias Triffterer authored
      As proposed by the clang-tidy warning modernize-avoid-bind, the
      replacements are made and they are indeed better readable.
      Verified
      559f5ba8
    • Tobias Triffterer's avatar
      Some Code Cleanup · 6bb2d6e0
      Tobias Triffterer authored
      Fixed or nolint'ed these warnings from clang-tidy:
      
      * cppcoreguidelines-init-variables
      * readability-isolate-declaration
      * readability-make-member-function-const
      * readability-convert-member-functions-to-static
      Verified
      6bb2d6e0
  5. May 14, 2020
    • Tobias Triffterer's avatar
      Add Filter Pattern to Improve Call Graphs · 33846e73
      Tobias Triffterer authored
      This is kind of a hack that circumvents the problem that Doxygen cannot
      “see” an access via a std::unique_ptr when it generates the call graphs.
      
      To do that, the file canbusconnection.cpp is passed through sed which
      replaces the character sequence “_impl->” by
      “CanBusConnectionImplementation”.
      
      The result is valid C++ code and allows doxygen to understand which
      methods of the implementation class is called.
      
      Nevertheless, that code would not compile because the methods are not
      static and need an instance. But for the purpose of generating call
      graphs this does not matter and the original code is shown in the source
      code listing, so everything is fine.
      Verified
      33846e73
    • Tobias Triffterer's avatar
      Create Doxygen Tagfile for EP1 CAN Bus Toolbox · 580dc159
      Tobias Triffterer authored
      To allow others to point to the documentation of EP1 CAN Bus Toolbox
      from the documentation of their project, the data from this project is
      exported as a tagfile.
      Verified
      580dc159
    • Tobias Triffterer's avatar
      Activate cppreference.com Tagfile in Doxygen · 21505055
      Tobias Triffterer authored
      This changes the Doxygen configuration so that the tag file is used and
      all references to the C++ standard library are turned into links.
      Verified
      21505055
    • Tobias Triffterer's avatar
      Add cppreference.com Doxygen Tag File · a6a98ee5
      Tobias Triffterer authored
      This adds the tag file of the cppreference.com C++ documentation to
      allow its use as external documentation by Doxygen.
      Verified
      a6a98ee5
  6. May 11, 2020
  7. May 07, 2020
  8. Apr 24, 2020
    • Tobias Triffterer's avatar
      Rename open/close CAN Bus Methods · c4eba0f3
      Tobias Triffterer authored
      As the socket itself is now managed by CanBusSocketWrapper, the names of these
      methods do no longer reflect what they actually do, so the methods are
      renamed.
      Verified
      c4eba0f3
    • Tobias Triffterer's avatar
      Use CanBusSocketWrapper to Stop FD Leak · 8fa0b860
      Tobias Triffterer authored
      This changes CanBusConnectionImplementation to leave handling the
      opening and closing of the socket to CanBusSocketWrapper.
      
      This means that the socket will be closed even if the constructor of
      CanBusConnectionImplementation should throw an exception, e.g. because
      of an invalid CAN interface name.
      Verified
      8fa0b860
    • Tobias Triffterer's avatar
      Introduce CanBusSocketWrapper Class · 8456b2f8
      Tobias Triffterer authored
      The class opens the socket in its constructor and closes it in its
      destructor. It thereby adapts the socket to the RAII principle of C++.
      
      The purpose of this class is to replace the handling of the socket in
      CanBusConnectionImplementation because the current code contains a leak:
      If there is an exception in the constructor, e.g. because the name of
      the CAN bus interface is invalid, the constructor will throw an
      exception and the destructor of CanBusConnectionImplementation will not
      run, leaking the socket file descriptor.
      Verified
      8456b2f8
    • Tobias Triffterer's avatar
      Shorten LinuxCanBusFinderCleanupHelper Type Name · 428b2c62
      Tobias Triffterer authored
      As the anonymous namespace makes sure that the type cannot be used
      outside the linuxcanbusfinder.cpp translation unit, a name clash with a
      similar helper struct is no longer an issue.
      
      Therefore the name can be shortened from LinuxCanBusFinderCleanupHelper
      to CleanupHelper.
      Verified
      428b2c62
  9. Apr 23, 2020
  10. Apr 16, 2020
  11. Apr 15, 2020
  12. Apr 14, 2020
Loading