Upgraded clang-format to 5.0 (#431)

This commit is contained in:
Tyler Veness
2017-11-11 22:09:51 -08:00
committed by Peter Johnson
parent 0001047b8b
commit 0c83cad70c
15 changed files with 96 additions and 67 deletions

View File

@@ -96,7 +96,7 @@ typedef Log FILELog;
if (level > FILELog::ReportingLevel()) \
; \
else \
Log().Get(level)
Log().Get(level)
inline std::string NowTime() {
llvm::SmallString<128> buf;

View File

@@ -84,8 +84,9 @@ IndexedClassedHandleResource<THandle, TStruct, size, enumValue>::Allocate(
template <typename THandle, typename TStruct, int16_t size,
HAL_HandleEnum enumValue>
std::shared_ptr<TStruct> IndexedClassedHandleResource<
THandle, TStruct, size, enumValue>::Get(THandle handle) {
std::shared_ptr<TStruct>
IndexedClassedHandleResource<THandle, TStruct, size, enumValue>::Get(
THandle handle) {
// get handle index, and fail early if index out of range or wrong handle
int16_t index = getHandleTypedIndex(handle, enumValue, m_version);
if (index < 0 || index >= size) {

View File

@@ -73,8 +73,9 @@ LimitedClassedHandleResource<THandle, TStruct, size, enumValue>::Allocate(
template <typename THandle, typename TStruct, int16_t size,
HAL_HandleEnum enumValue>
std::shared_ptr<TStruct> LimitedClassedHandleResource<
THandle, TStruct, size, enumValue>::Get(THandle handle) {
std::shared_ptr<TStruct>
LimitedClassedHandleResource<THandle, TStruct, size, enumValue>::Get(
THandle handle) {
// get handle index, and fail early if index out of range or wrong handle
int16_t index = getHandleTypedIndex(handle, enumValue, m_version);
if (index < 0 || index >= size) {