Update the entire application to use the new clang format style

This commit is contained in:
James Rowe 2018-03-09 10:54:43 -07:00
parent ed36edf69c
commit f61141e86a
148 changed files with 955 additions and 552 deletions

View file

@ -13,5 +13,5 @@ AESKey Lrot128(const AESKey& in, u32 rot);
AESKey Add128(const AESKey& a, const AESKey& b);
AESKey Xor128(const AESKey& a, const AESKey& b);
} // namspace AES
} // namespace AES
} // namespace HW

View file

@ -19,10 +19,10 @@ namespace {
// 3DS uses a non-standard AES-CCM algorithm, so we need to derive a sub class from the standard one
// and override with the non-standard part.
using CryptoPP::lword;
using CryptoPP::AES;
using CryptoPP::CCM_Final;
using CryptoPP::CCM_Base;
using CryptoPP::CCM_Final;
using CryptoPP::lword;
template <bool T_IsEncryption>
class CCM_3DSVariant_Final : public CCM_Final<AES, CCM_MAC_SIZE, T_IsEncryption> {
public:

View file

@ -33,5 +33,5 @@ void SetNormalKey(size_t slot_id, const AESKey& key);
bool IsNormalKeyAvailable(size_t slot_id);
AESKey GetNormalKey(size_t slot_id);
} // namspace AES
} // namespace AES
} // namespace HW

View file

@ -439,16 +439,18 @@ inline void Write(u32 addr, const T data) {
if (config.is_texture_copy) {
TextureCopy(config);
LOG_TRACE(HW_GPU, "TextureCopy: 0x%X bytes from 0x%08X(%u+%u)-> "
"0x%08X(%u+%u), flags 0x%08X",
LOG_TRACE(HW_GPU,
"TextureCopy: 0x%X bytes from 0x%08X(%u+%u)-> "
"0x%08X(%u+%u), flags 0x%08X",
config.texture_copy.size, config.GetPhysicalInputAddress(),
config.texture_copy.input_width * 16, config.texture_copy.input_gap * 16,
config.GetPhysicalOutputAddress(), config.texture_copy.output_width * 16,
config.texture_copy.output_gap * 16, config.flags);
} else {
DisplayTransfer(config);
LOG_TRACE(HW_GPU, "DisplayTransfer: 0x%08x(%ux%u)-> "
"0x%08x(%ux%u), dst format %x, flags 0x%08X",
LOG_TRACE(HW_GPU,
"DisplayTransfer: 0x%08x(%ux%u)-> "
"0x%08x(%ux%u), dst format %x, flags 0x%08X",
config.GetPhysicalInputAddress(), config.input_width.Value(),
config.input_height.Value(), config.GetPhysicalOutputAddress(),
config.output_width.Value(), config.output_height.Value(),

View file

@ -331,4 +331,4 @@ void Init();
/// Shutdown hardware
void Shutdown();
} // namespace
} // namespace GPU

View file

@ -98,4 +98,4 @@ void Shutdown() {
LCD::Shutdown();
LOG_DEBUG(HW, "shutdown OK");
}
}
} // namespace HW

View file

@ -47,4 +47,4 @@ void Init();
/// Shutdown hardware
void Shutdown();
} // namespace
} // namespace HW

View file

@ -73,4 +73,4 @@ void Shutdown() {
LOG_DEBUG(HW_LCD, "shutdown OK");
}
} // namespace
} // namespace LCD

View file

@ -83,4 +83,4 @@ void Init();
/// Shutdown hardware
void Shutdown();
} // namespace
} // namespace LCD

View file

@ -378,5 +378,5 @@ void PerformConversion(ConversionConfiguration& cvt) {
cvt.output_format, (u8)cvt.alpha);
}
}
}
}
} // namespace Y2R
} // namespace HW

View file

@ -8,10 +8,10 @@ namespace Service {
namespace Y2R {
struct ConversionConfiguration;
}
}
} // namespace Service
namespace HW {
namespace Y2R {
void PerformConversion(Service::Y2R::ConversionConfiguration& cvt);
}
}
} // namespace HW