Skip to content
Snippets Groups Projects
  1. Sep 20, 2024
  2. May 16, 2024
  3. May 12, 2024
  4. May 06, 2024
  5. Mar 13, 2024
  6. Mar 05, 2024
  7. Feb 16, 2024
  8. Feb 14, 2024
  9. Jan 29, 2024
  10. Dec 05, 2023
    • Wuttke, Joachim's avatar
      mv getter implementations to headers; add test · 74215229
      Wuttke, Joachim authored
      def exec_getters_to_h(fstem, th, tc):
      
          for m in re.finditer(r'\n(\S+) (\w+)::([a-z]\w*)\(\) const\n{\n    (return m_\w+;)\n}\n+', tc):
              rtyp = m.group(1)
              clas = m.group(2)
              fctn = m.group(3)
              code = m.group(4)
      
              old = r'(\nclass '+clas+r'.*?\n    '+rtyp+' '+fctn+'\(\) const);'
              th2 = re.sub(old, r'\1 { '+code+' }', th, 1, re.DOTALL)
              if th2 != th:
                  tc = tc.replace(m.group(0), '')
                  th = th2
      
          return th, tc
      74215229
  11. Nov 30, 2023
  12. Nov 29, 2023
  13. Nov 27, 2023
  14. Nov 24, 2023
  15. Nov 23, 2023
  16. Nov 16, 2023
  17. Nov 13, 2023
  18. Nov 09, 2023
  19. Nov 07, 2023
  20. Oct 17, 2023
  21. Sep 26, 2023
  22. Sep 25, 2023
Loading