summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorLenny Maiorani <lenny@colorado.edu>2020-10-20 10:08:13 -0600
committerGitHub <noreply@github.com>2020-10-20 18:08:13 +0200
commitd1fe6a0b535169aed22d08463bb92b9ae62b5d15 (patch)
tree06841235a49af66d66d46033a44c30237cedd39d /DevTools
parenta40abd6ce3a032b1baf52c3573ff02ad658c6e91 (diff)
downloadserenity-d1fe6a0b535169aed22d08463bb92b9ae62b5d15.zip
Everywhere: Redundant inline specifier on constexpr functions (#3807)
Problem: - `constexpr` functions are decorated with the `inline` specifier keyword. This is redundant because `constexpr` functions are implicitly `inline`. - [dcl.constexpr], ยง7.1.5/2 in the C++11 standard): "constexpr functions and constexpr constructors are implicitly inline (7.1.2)". Solution: - Remove the redundant `inline` keyword.
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/UserspaceEmulator/SoftCPU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/DevTools/UserspaceEmulator/SoftCPU.cpp b/DevTools/UserspaceEmulator/SoftCPU.cpp
index 84f7ac5476..a72b084607 100644
--- a/DevTools/UserspaceEmulator/SoftCPU.cpp
+++ b/DevTools/UserspaceEmulator/SoftCPU.cpp
@@ -74,7 +74,7 @@ void SoftCPU::warn_if_flags_tainted(const char* message) const
}
template<typename T, typename U>
-inline constexpr T sign_extended_to(U value)
+constexpr T sign_extended_to(U value)
{
if (!(value & X86::TypeTrivia<U>::sign_bit))
return value;