Skip to content
Snippets Groups Projects
  1. Dec 14, 2023
  2. Dec 08, 2023
  3. Dec 07, 2023
  4. 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
  5. Nov 15, 2023
  6. Nov 14, 2023
  7. Nov 13, 2023
  8. Nov 11, 2023
  9. Nov 09, 2023
  10. Oct 19, 2023
  11. Oct 12, 2023
  12. Oct 11, 2023
  13. Aug 01, 2023
  14. Jul 05, 2023
  15. Apr 08, 2023
  16. Apr 06, 2023
  17. Mar 13, 2023
  18. Feb 13, 2023
Loading