Skip to content

Commit

Permalink
Merge pull request #4116 from leoetlino/lint-real-fix
Browse files Browse the repository at this point in the history
Tools: Fix the lint script (for real, this time -- and the last time)
  • Loading branch information
delroth committed Aug 11, 2016
2 parents cef71af + c118495 commit 4c9c456
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/Core.cpp
Expand Up @@ -905,8 +905,8 @@ void UpdateTitle()
(u32)Movie::GetCurrentFrame(), FPS, VPS, Speed);
else if (Movie::IsRecordingInput())
SFPS = StringFromFormat("Input: %u - VI: %u - FPS: %.0f - VPS: %.0f - %.0f%%",
(u32)Movie::GetCurrentInputCount(), (u32)Movie::GetCurrentFrame(), FPS, VPS,
Speed);
(u32)Movie::GetCurrentInputCount(), (u32)Movie::GetCurrentFrame(), FPS,
VPS, Speed);
else
{
SFPS = StringFromFormat("FPS: %.0f - VPS: %.0f - %.0f%%", FPS, VPS, Speed);
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/JitArm64/JitAsm.cpp
Expand Up @@ -53,7 +53,7 @@ void JitArm64::GenerateAsm()
{
// set the mem_base based on MSR flags
LDR(INDEX_UNSIGNED, ARM64Reg::W28, PPC_REG, PPCSTATE_OFF(msr));
FixupBranch physmem = TBNZ(ARM64Reg::W28, 31-27);
FixupBranch physmem = TBNZ(ARM64Reg::W28, 31 - 27);
MOVI2R(MEM_REG, (u64)Memory::physical_base);
FixupBranch membaseend = B();
SetJumpTarget(physmem);
Expand Down Expand Up @@ -103,7 +103,7 @@ void JitArm64::GenerateAsm()

// set the mem_base based on MSR flags
LDR(INDEX_UNSIGNED, ARM64Reg::W28, PPC_REG, PPCSTATE_OFF(msr));
FixupBranch physmem = TBNZ(ARM64Reg::W28, 31-27);
FixupBranch physmem = TBNZ(ARM64Reg::W28, 31 - 27);
MOVI2R(MEM_REG, (u64)Memory::physical_base);
FixupBranch membaseend = B();
SetJumpTarget(physmem);
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/Enums.cpp
Expand Up @@ -5,9 +5,9 @@
#include <map>
#include <string>

#include "DiscIO/Enums.h"
#include "Common/CommonTypes.h"
#include "Common/Logging/Log.h"
#include "DiscIO/Enums.h"

namespace DiscIO
{
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/VideoCommon/PixelEngine.cpp
Expand Up @@ -148,7 +148,8 @@ void Init()
s_signal_token_interrupt = false;
s_signal_finish_interrupt = false;

et_SetTokenFinishOnMainThread = CoreTiming::RegisterEvent("SetTokenFinish", SetTokenFinish_OnMainThread);
et_SetTokenFinishOnMainThread =
CoreTiming::RegisterEvent("SetTokenFinish", SetTokenFinish_OnMainThread);
}

void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
Expand Down Expand Up @@ -218,8 +219,7 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
}));

// Token register, readonly.
mmio->Register(base | PE_TOKEN_REG,
MMIO::ComplexRead<u16>([](u32) { return s_token; }),
mmio->Register(base | PE_TOKEN_REG, MMIO::ComplexRead<u16>([](u32) { return s_token; }),
MMIO::InvalidWrite<u16>());

// BBOX registers, readonly and need to update a flag.
Expand Down
6 changes: 3 additions & 3 deletions Source/Core/VideoCommon/RenderBase.cpp
Expand Up @@ -312,9 +312,9 @@ void Renderer::DrawDebugText()
{
final_cyan += StringFromFormat("Frame: %llu", (unsigned long long)Movie::GetCurrentFrame());
if (Movie::IsPlayingInput())
final_cyan +=
StringFromFormat("\nInput: %llu / %llu", (unsigned long long)Movie::GetCurrentInputCount(),
(unsigned long long)Movie::GetTotalInputCount());
final_cyan += StringFromFormat("\nInput: %llu / %llu",
(unsigned long long)Movie::GetCurrentInputCount(),
(unsigned long long)Movie::GetTotalInputCount());
}

final_cyan += "\n";
Expand Down
2 changes: 1 addition & 1 deletion Tools/lint.sh
Expand Up @@ -5,7 +5,7 @@
fail=0

# Check for clang-format issues.
for f in $(git diff --name-only --diff-filter=ACMRTUXB); do
for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do
if ! echo "${f}" | egrep -q "[.](cpp|h|mm)$"; then
continue
fi
Expand Down

0 comments on commit 4c9c456

Please sign in to comment.