- 30 Jun, 2022 40 commits
-
-
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
-
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
-
Michiel Verloop authored
-
Michiel Verloop authored
• Removed the location-warning test since other commits made the scenario produce an error instead of a warning.
-
Michiel Verloop authored
-
Michiel Verloop authored
• CTInote still uses two spaces as a header when not given a location. • CTInote uses headers like CTIwarn/error/abort when given a location. • All CTInoteLine callers now call CTInote and use NODE_LOCATION instead of NODE_LINE. • LINE_TO_LOC now has brackets around the argument. • Remove unused functions in CTinfo.c
-
Michiel Verloop authored
-
Michiel Verloop authored
• Remove message_line_length, set_message_length(), CTIgetErrorMessageLength() and CTIgetWarnMessageLength() from ctinfo.
-
Michiel Verloop authored
• All CTIwarnLine callers have LINE_TO_LOC applied to their first argument. • CTIwarnLoc will be converted to make use of CTIwarn in the next commit.
-
Michiel Verloop authored
• All CTIwarn callers have EMPTY_LOC inserted as their first argument. • CTIwarnLine/Loc will be converted to make use of CTIwarn in the coming two commits.
-
Michiel Verloop authored
• All CTIabortLine callers have LINE_TO_LOC applied to their first argument. • Callers with NODE_LINE have been changed to use NODE_LOCATION. • CTIabortLoc will be converted to make use of CTIabort in the next commit.
-
Michiel Verloop authored
• All CTIabort callers have EMPTY_LOC inserted as their first argument. • CTIabortLine/Loc will be converted to make use of CTIabort in the coming two commits.
-
Michiel Verloop authored
• CTIabort-Line/Loc will be converted to make use of CTIabort in the next commits.
-
Michiel Verloop authored
• All CTIerrorLine callers have LINE_TO_LOC applied to their first argument. • CTIerrorLoc will be converted to make use of CTIerror in the next commit.
-
Michiel Verloop authored
• All CTIerror callers have EMPTY_LOC inserted as their first argument. • CTIerrorLine/Loc will be converted to make use of CTIerror in the coming two commits.
-
Hans-Nikolai Viessmann authored
-
Michiel Verloop authored
• Fix double free errors in CTIcreateMessage-Line/Loc
-
Michiel Verloop authored
-
Michiel Verloop authored
• CTIerrorBasic will end up replacing CTIerror and its sibling variants. They are kept for now to keep the code running.
-
Michiel Verloop authored
This reverts commit 08699a1d.
-
Michiel Verloop authored
-
Michiel Verloop authored
• CTIerrorContinued remains broken for cti-single-line. • cti-message-length should fully work now but there are no automated tests for it yet.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Change usage descriptions. • Fix CTIgetErrorMessageVA. • Break CTIerrorContinued - uses indents instead of cti-multi-line-format.
-
Michiel Verloop authored
-
Michiel Verloop authored
• Change default arguments for cti-header-format and cti-multiline-format in globals.mac • Add consistency warning for when -cti-single-line is enabled and -cti-message-line-length != 0 • Fix failing to parse format strings in errors • Fix incorrect documentation in str.c • Break CTIgetErrorMessageVA - the format now differs from the rest.
-
Michiel Verloop authored
This reverts commit f863830c.
-
Michiel Verloop authored
-
Sven-Bodo Scholz authored
-
Michiel Verloop authored
In the old system, warning messages were obtained in the format of `warning: <first line of warning_message>`. In the new system, warning messages are displayed on lines that follow lines containing nothing but "Warning:". The first grep setup grabs the warnings and the line after each warning. The first lines containing "Warning:" are then removed by the second grep. The third grep now greps on the first line of the warning message prefixed by two spaces, which should be close enough to the original behaviour.
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-
Michiel Verloop authored
-