Skip to content
Snippets Groups Projects
  1. Jan 28, 2021
  2. Jan 27, 2021
  3. Jan 21, 2021
  4. Jan 20, 2021
  5. Jan 11, 2021
  6. Jan 07, 2021
    • Gerhard Raven's avatar
      Tweak StatusCode: · 7f26a7dc
      Gerhard Raven authored
      * Move |,|=,&,&= out of global namespace, and make them friends instead so that ADL can still find them
      * Add a 'orThrow' which uses the message from `message()` if no message is specified
      7f26a7dc
  7. Dec 20, 2020
  8. Dec 19, 2020
    • scott snyder's avatar
      fix formatting · 20296abb
      scott snyder authored
      20296abb
    • scott snyder's avatar
      GaudiToolbox: Fix generated __init__ files to handle symlinks. · f8bf2d1c
      scott snyder authored
      The __init__.py files generated from GaudiProjectConfig.cmake has
      code like:
      
      ```
      __path__ = [d for d in [os.path.join(d, '${pypack}') for d in sys.path if d]
                  if (d.startswith('${CMAKE_BINARY_DIR}') or
       ```
      
      However, if the working path contains a symlink, then the element in
      sys.path may have the symlink, but the value from ${CMAKE_BINARY_DIR}
      to which we compare it will have the symlink expanded.  Change to expand
      any symlinks (using os.path.realname) in the paths from sys.path
      before comparing.
      
      f8bf2d1c
    • scott snyder's avatar
      Make iteration ordering predictable. · ed7b6f82
      scott snyder authored
      The order of iteration over a std::unordered_map is undefined,
      and can and does change between compiler implementations,
      and between different versions of the same compiler.
      (In particular, it changes going from gcc8 to gcc10.)
      
      PrecedenceRulesGraph has a few places where it iterates
      over an unordered_map, and this ordering is visible externally.
      Add a separate sorting step in those cases so that the ordering
      will always be the same.
      
      Everything following the line with "---" will be ignored
      
      sortAlgs--------------------------------------------------------------
      
      Sort algs in PRG for consistent results.
      ed7b6f82
    • scott snyder's avatar
      Check result of dynamic_cast<> for null before dereferencing. · 937b6768
      scott snyder authored
      Fixes compilation warnings seen with gcc11.
      937b6768
    • scott snyder's avatar
      Fix clang 10 warnings. · 0ef70b85
      scott snyder authored
      - Implicit assignment op in the presence of an explicit
        copy ctor is deprecated.  And also the other way round.
      
      Needed to fix warnings in the ATLAS clang build.
      0ef70b85
  9. Dec 11, 2020
    • Frank Winklmeier's avatar
      Property: Catch all parsing errors · e6b3006a
      Frank Winklmeier authored
      `Property::fromString` was only catching `std::invalid_argument`
      exceptions. However, there can be other exceptions thrown by the parser
      (e.g. from `boost::spirit`) that were not being filtered. Change the
      code to catch all `std::exception`s. In addition:
      
      - Re-throw the exception as `Gaudi::Exception`.
      - Improve the diagnostics to contain the property name and owner type.
      - Add "WARNING/FATAL" keywords to the `stderr` message.
      - Add test case to `PropertyAlg`.
      e6b3006a
  10. Dec 04, 2020
Loading