- 06 Jul, 2022 1 commit
-
-
Michiel Verloop authored
-
- 30 Jun, 2022 16 commits
-
-
Michiel Verloop authored
-
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.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
• Fix wrong calls to CTIabort • Potential fix to ignore -Wformat-zero-length in a few test cases.
-
Michiel Verloop authored
• Runtime unit-tests (cuda/hwloc) are broken because of linking errors. • Main.c now calls CTFinitialize.
-
Michiel Verloop authored
-
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.
-
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.
-
Michiel Verloop authored
• Move the default header formats from ctinfo.c to ctformatting.c ○ The getDefault functions now return a const reference to the default header. • Move option consistency check for cti globals to ctformatting with CTFinitialize. • Fix the test from last commit that was broken. • Various improvements or tiny fixes to ctformatting.c
-
Michiel Verloop authored
• Add CTFcheckHeaderConsistency to ctformatting. • Add default headers to ctinfo and methods to retrieve copies of said headers. • Set the default headers as default headers in globals.mac • Add header consistency checks to OPTcheckOptionConsistency in options.c ○ Add warnings for conflicting cti settings. • Add broken test to test-compile-time-formatting.cpp for CTFcreateMessageLoc.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
• Add new files ctformatting.c, ctformatting.h and add them to CMakeLists. • Add a rewrite of the ProcessMessage, loc2buf, and CTIfinalize functions to ctformatting.c. ○ Tests pending. ○ The functions are still present in ctinfo.c • Add SBUFtruncate, SBUFinsertAfterToken, and related tests. • Add != null debug asserts for all pointer arguments for SBUF functions. • Add minor improvements to ctinfo.c
-