dvyukov / relacy

Automatically exported from code.google.com/p/relacy
Other
208 stars 32 forks source link

Default debug information in C++20, fix spec for atomic #20

Closed ccotter closed 3 months ago

ccotter commented 3 months ago

Relacy requires changing the source code under test to add the debug information with the $ macro, e.g., cv.notify($). With C++20's std::source_location, we can default the debug parameter. This allows the code under test to spell cv.notify() while still being passed the correct file/line/function debug information.

Additionally, this commit fixes the spec for std::atomic to

Test plan: Verified build with the following on a Linux environment

CXX_STD=c++11 make clean && make -j $(nproc) all
CXX_STD=c++20 make clean && make -j $(nproc) all