Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions src/gpgmm/common/EventTraceWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace gpgmm {
std::vector<TraceEvent> mBuffer;
};

EventTraceWriter::EventTraceWriter()
EventTraceWriter::EventTraceWriter() noexcept
: mTraceFile(kDefaultTraceFile),
mIgnoreMask(TraceEventPhase::None),
mPlatformTime(CreatePlatformTime()) {
Expand Down Expand Up @@ -95,7 +95,7 @@ namespace gpgmm {
}
}

void EventTraceWriter::FlushQueuedEventsToDisk() {
void EventTraceWriter::FlushQueuedEventsToDisk() noexcept {
std::unique_lock<std::mutex> lock(mMutex);

JSONArray traceEvents;
Expand Down
4 changes: 2 additions & 2 deletions src/gpgmm/common/EventTraceWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace gpgmm {

class EventTraceWriter {
public:
EventTraceWriter();
EventTraceWriter() noexcept;
~EventTraceWriter();

void SetConfiguration(const char* traceFile, const TraceEventPhase& ignoreMask);
Expand All @@ -42,7 +42,7 @@ namespace gpgmm {
uint32_t flags,
const JSONDict& args);

void FlushQueuedEventsToDisk();
void FlushQueuedEventsToDisk() noexcept;

void FlushAndRemoveBufferEntry(std::vector<TraceEvent>* buffer);

Expand Down
2 changes: 1 addition & 1 deletion src/gpgmm/d3d12/ErrorD3D12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace gpgmm::d3d12 {

std::string GetErrorMessage(HRESULT error) {
std::string GetErrorMessage(HRESULT error) noexcept {
std::wstring wstring = TCharToWString(_com_error(error).ErrorMessage());
std::stringstream ss;
ss << WCharToUTF8(wstring.c_str()) << " (0x" << std::hex << std::uppercase
Expand Down
2 changes: 1 addition & 1 deletion src/gpgmm/d3d12/ErrorD3D12.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace gpgmm::d3d12 {
#define AssertIfSucceded(expr) ASSERT(FAILED(expr));

std::string GetDeviceErrorMessage(ID3D12Device* device, HRESULT error);
std::string GetErrorMessage(HRESULT error);
std::string GetErrorMessage(HRESULT error) noexcept;

} // namespace gpgmm::d3d12

Expand Down
4 changes: 2 additions & 2 deletions src/gpgmm/utils/JSONEncoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace gpgmm {

// JSONDict

JSONDict::JSONDict() {
JSONDict::JSONDict() noexcept {
mSS << "{ ";
}

Expand Down Expand Up @@ -106,7 +106,7 @@ namespace gpgmm {

// JSONArray

JSONArray::JSONArray() {
JSONArray::JSONArray() noexcept {
mSS << "[ ";
}

Expand Down
4 changes: 2 additions & 2 deletions src/gpgmm/utils/JSONEncoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace gpgmm {

class JSONDict {
public:
JSONDict();
JSONDict() noexcept;
JSONDict(const std::string& name, const JSONDict& object);
JSONDict(const JSONDict& other);
JSONDict& operator=(const JSONDict& other);
Expand Down Expand Up @@ -55,7 +55,7 @@ namespace gpgmm {

class JSONArray {
public:
JSONArray();
JSONArray() noexcept;
JSONArray(const JSONArray& other);
JSONArray& operator=(const JSONArray& other);

Expand Down
2 changes: 1 addition & 1 deletion src/gpgmm/utils/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace gpgmm {

// LogMessage

LogMessage::LogMessage(MessageSeverity severity, MessageId messageId)
LogMessage::LogMessage(MessageSeverity severity, MessageId messageId) noexcept
: mSeverity(severity), mMessageId(messageId) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/gpgmm/utils/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ namespace gpgmm {
// Essentially an ostringstream that will print itself in its destructor.
class LogMessage {
public:
LogMessage(MessageSeverity severity, MessageId messageId);
LogMessage(MessageSeverity severity, MessageId messageId) noexcept;
~LogMessage();

LogMessage(LogMessage&& other) = default;
LogMessage& operator=(LogMessage&& other) = default;

template <typename T>
LogMessage& operator<<(T&& value) {
LogMessage& operator<<(T&& value) noexcept {
mStream << value;
return *this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/gpgmm/utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ namespace gpgmm {
std::string ToString(const void* object);

template <typename T>
std::string ToString(T object) {
std::string ToString(T object) noexcept {
std::stringstream output;
output << object;
return output.str();
}

// Converts T to a hexadecimal string.
template <typename T>
std::string ToHexStr(T object) {
std::string ToHexStr(T object) noexcept {
std::stringstream stream;
stream << "0x" << std::hex << object;
return stream.str();
Expand Down