Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Test the possibility of using problem matchers for errors/warnings #195

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ jobs:
run: |
cmake -S . -B ./build -G "${{matrix.generator}}" -DCMAKE_BUILD_TYPE:STRING=${{matrix.build_type}} -DENABLE_DEVELOPER_MODE:BOOL=${{matrix.developer_mode}} -DOPT_ENABLE_COVERAGE:BOOL=${{ matrix.build_type == 'Debug' }}

- name: GCC Problem Matcher
uses: ammaraskar/[email protected]
- name: MSVC Problem Matcher
uses: ammaraskar/[email protected]

lefticus marked this conversation as resolved.
Show resolved Hide resolved
- name: Build
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
Expand Down
11 changes: 11 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ int main(int argc, const char **argv)
spdlog::info("Hello, {}!", "World");

fmt::print("Hello, from {}\n", "{fmt}");

// this line exists solely to check the problem matchers
int *i = nullptr;
*i = 42;

int j;
int k;
int l = j + k;

fmt::print("Test printing values {} {} {} {}\n", *i, j, k, l);

} catch (const std::exception &e) {
fmt::print("Unhandled exception in main: {}", e.what());
}
Expand Down