Skip to content

Commit

Permalink
Apply clang tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
defisym committed Nov 20, 2023
1 parent 7110e9f commit 8302ef1
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 102 deletions.
12 changes: 6 additions & 6 deletions Extensions/Func/Func.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ inline long NotInFuncError() {
Assert(false, L"Not In Func");
#endif

if (std::is_same_v<Type, std::wstring()>) {
return (long)Default_Str;
if constexpr (std::is_same_v<Type, std::wstring()>) {
return reinterpret_cast<long>(Default_Str);
}
else {
return -1;
Expand Down Expand Up @@ -144,7 +144,7 @@ class FuncInfoObject {
rdPtr->FuncParamStack->emplace_back();
UpdateParam(rdPtr, param);

rdPtr->FuncReturn->clear();
rdPtr->FuncReturn->clear();

(*rdPtr->RecursiveIndex)[funcName] += 1;

Expand All @@ -171,7 +171,7 @@ class FuncInfoObject {
}

inline const auto& GetManglingName() { return manglingName; }

// handle loop
inline void CallFunc(const std::function<void()>& callback,
size_t loopIndex = 1) const {
Expand Down Expand Up @@ -228,7 +228,7 @@ inline void IterateObjectCore(LPRDATA rdPtr, short oil,
toIterate.emplace_back(object);
}, flag);

if(toIterate.empty()) {
if (toIterate.empty()) {
return;
}

Expand Down Expand Up @@ -285,5 +285,5 @@ inline Data& TempParam(LPRDATA rdPtr, const std::wstring& FuncName, const std::w
inline bool HasTempParam(LPRDATA rdPtr, const std::wstring& FuncName, const std::wstring& ParamName) {
const auto& name = GetFuncNameWithRecursiveID(rdPtr, FuncName);

return (*rdPtr->FuncTempParam).contains(name) && (*rdPtr->FuncTempParam)[name].contains(ParamName);
return rdPtr->FuncTempParam->contains(name) && (*rdPtr->FuncTempParam)[name].contains(ParamName);
}
Loading

0 comments on commit 8302ef1

Please sign in to comment.