1. 18 Nov, 2022 3 commits
  2. 05 Nov, 2022 1 commit
  3. 04 Nov, 2022 2 commits
  4. 03 Nov, 2022 1 commit
  5. 02 Nov, 2022 2 commits
  6. 31 Oct, 2022 1 commit
  7. 29 Oct, 2022 3 commits
  8. 27 Oct, 2022 1 commit
  9. 13 Aug, 2022 4 commits
  10. 12 Aug, 2022 1 commit
  11. 06 Jul, 2022 2 commits
  12. 30 Jun, 2022 19 commits
    • Michiel Verloop's avatar
      Add/improve end-to-end tests. · b3104126
      Michiel Verloop authored
      • Add CTIerrorBegin/End call to a CTIerrorContinued call site that was missed in an earlier commit.
      • Add end-to-end test for CTIerrorBegin/Continued/End.
      • Rename error end-to-end tests to have consistent naming.
      • Expand test-error-generic to additionally test line wrapping and custom header arguments.
      • Fix inconsistent CTIerror behaviour by moving the CTFinitialize call from OPTcheckOptionConsistency to main.c.
      b3104126
    • Michiel Verloop's avatar
      558588d1
    • Michiel Verloop's avatar
      Refactor ctinfo.c to rely on ctformatting.h + various improvements. · bd2eff1c
      Michiel Verloop authored
      • Refactor ctinfo.c to rely on ctformatting.h.
        ○ Decouple various calls to ctformatting.h using macros.
        ○ Remove ProcessMessage, Loc2buf, PrintMessage, FinalizeMessageBegin and FinalizeMessage.
        ○ Refactor CTIerrorBegin/Continued/End.
          - Refactored calling locations to properly make use of these functions.
        ○ Remove CTIwarnContinued (Had no uses and CTIwarnBegin/End did not yet exist).
        ○ Add CTIerrorRaw as a companion function to CTIgetErrorMessageVA.
          - Refactored calling locations of CTIgetErrorMessageVA to use CTIerrorRaw when printing output.
      • Add sac2cShared as a dependency for base-test-environment to avoid linking before types_nodetype.h is generated.
      • Add SBUFprintd function variant that deallocates the string argument.
      • Fix TYextendBottomError adding a newline if the error message to concatenate is null.
      • Refactor errors in type_errors.c to make use of str_buffer.h.
        - This also fixes two memory leaks.
      • Remove all sources of '@' characters in strings where they were used as newlines.
      • Refactor all sinks of '@' characters to instead consume newlines.
        ○ An exception is in ctformatting.c, because the source of the @ character is a compiler argument and cannot generate newlines.
      • Remove outdated README from the tests/errors folder (An updated README exists in the tests folder).
      • Refactor error end-to-end tests.
        ○ Add Mac compatibility - the tests no longer make use of the -P flag which BSD grep does not support.
        ○ Remove the case insensitive flags.
      • Rename test-type_inference_error.sac to test-type-inference-error.sac.
      • Rename test-overload_error.sac to test-overload-error.sac.
      • Rename function CTFvcreateMessageLoc to CTFvCreateMessageLoc.
      bd2eff1c
    • Michiel Verloop's avatar
      Set default terminal length to 0 when stderr outputs to a file instead of terminal. · 7b37ea90
      Michiel Verloop authored
      • Fix a warning for cti-single-line being issued when it should not, and vice versa.
      7b37ea90
    • Michiel Verloop's avatar
      Update end-to-end tests README. · cd962f8c
      Michiel Verloop authored
      • Changed all mentions of unit tests to end-to-end tests.
      • Document how to reuse program output to run multiple checks on it.
      • Document how to use run.sh for an entire folder at once.
      • Miscellaneous improvements.
      cd962f8c
    • Michiel Verloop's avatar
      Fix post-rebase issues. · 67d54cb6
      Michiel Verloop authored
      67d54cb6
    • Michiel Verloop's avatar
      Improvements to ctformatting.c to keep the API of ctinfo.c the same. · 19fe7806
      Michiel Verloop authored
      • CTFcreateMessageContinued can now be called without providing the multiline header.
      • The 'current' multiline header is stored as a static variable in ctformatting.c.
      • The functions CTFcreateMessage(Begin)(Loc) assign the multiline header.
      • CTFcreateMessageEnd frees the multiline header and sets it to NULL.
      • The CTFcreateMessageBegin functions call CTFcreateMessageContinued to parse remaining_lines instead of returning them unparsed.
      • Updated tests for the changed behaviour.
      19fe7806
    • Michiel Verloop's avatar
      ddd1a76f
    • Michiel Verloop's avatar
      Fix broken test. · 72cfa7ee
      Michiel Verloop authored
      72cfa7ee
    • Michiel Verloop's avatar
      Potential CI fixes. · df7d090f
      Michiel Verloop authored
      • Fix wrong calls to CTIabort
      • Potential fix to ignore -Wformat-zero-length in a few test cases.
      df7d090f
    • Michiel Verloop's avatar
      Fix runtime unit-tests. · 84022a19
      Michiel Verloop authored
      84022a19
    • Michiel Verloop's avatar
      Attempt to always call CTFinitialize and CTIset_stderr. · bfdd1052
      Michiel Verloop authored
      • Runtime unit-tests (cuda/hwloc) are broken because of linking errors.
      • Main.c now calls CTFinitialize.
      bfdd1052
    • Michiel Verloop's avatar
      527422b5
    • Michiel Verloop's avatar
      Fixes for @ char replacement in the headers. · 11ff9c4d
      Michiel Verloop authored
      • Fix @ being replaced with newlines in the multiline header.
      • Fix @ being replaced with spaces instead of a newline in the first line header if cti-single-line is disabled.
      • Add tests for replacing @ with \n or a space for the first line header.
      11ff9c4d
    • Michiel Verloop's avatar
      041e116e
    • Michiel Verloop's avatar
      Address formatting nitpicks. · fc343db3
      Michiel Verloop authored
      fc343db3
    • Michiel Verloop's avatar
    • Michiel Verloop's avatar
      Fix global.h not being imported. · 8b9d2f19
      Michiel Verloop authored
      8b9d2f19
    • Michiel Verloop's avatar
      Fix compilation hang. · 579bf55b
      Michiel Verloop authored
      In the previous commit, static const globals were defined in ctformatting.c, alongside getter functions.
      The getters are not allowed, and lead to a hang.
      The fix is to instead define the globals in the header file as macros.
      579bf55b