Skip to content

chore: standardize catch.hpp import#700

Merged
ngober merged 1 commit intoChampSim:developfrom
gigamonster256:gigamonster256/push-pmzkrvsluxml
Mar 25, 2026
Merged

chore: standardize catch.hpp import#700
ngober merged 1 commit intoChampSim:developfrom
gigamonster256:gigamonster256/push-pmzkrvsluxml

Conversation

@gigamonster256
Copy link
Copy Markdown

@gigamonster256 gigamonster256 commented Mar 25, 2026

catch2 dependency includes should be angle brackets, not double quotes - otherwise you will get errors such as the following

only a few test files had quotes, most already have angle brackets

champsim> g++ @global.options @absolute.options -MM -MT .csconfig/test/602-walk-latency.d -MT .csconfig/test/602-walk-latency.o -I.csconfig -MF .csconfig/test/602-walk-latency.d test/cpp/src/602-walk-latency.cc
champsim> test/cpp/src/602-walk-latency.cc:1:10: fatal error: catch.hpp: No such file or directory
champsim>     1 | #include "catch.hpp"
champsim>

ran clang format to sort the imports

Copy link
Copy Markdown
Collaborator

@ngober ngober left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good change!

@ngober ngober changed the base branch from master to develop March 25, 2026 15:23
@ngober ngober merged commit 8e5f6c1 into ChampSim:develop Mar 25, 2026
github-actions Bot added a commit that referenced this pull request Mar 25, 2026
Author: Caleb Norton
Committer: GitHub

chore: standardize catch.hpp import (#700)

catch2 dependency includes should be angle brackets, not double quotes -
otherwise you will get errors such as the following

only a few test files had quotes, most already have angle brackets

```bash
champsim> g++ @global.options @absolute.options -MM -MT .csconfig/test/602-walk-latency.d -MT .csconfig/test/602-walk-latency.o -I.csconfig -MF .csconfig/test/602-walk-latency.d test/cpp/src/602-walk-latency.cc
champsim> test/cpp/src/602-walk-latency.cc:1:10: fatal error: catch.hpp: No such file or directory
champsim>     1 | #include "catch.hpp"
champsim>
```

ran clang format to sort the imports
@gigamonster256 gigamonster256 deleted the gigamonster256/push-pmzkrvsluxml branch March 25, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants