Browse Source
Merge pull request #11116 from lat9nq/clang-shadowing
Merge pull request #11116 from lat9nq/clang-shadowing
general: Silence -Wshadow{,-uncaptured-local} warnings
nce_cpp
committed by
GitHub
21 changed files with 2362 additions and 2248 deletions
-
2CMakeLists.txt
-
169externals/demangle/ItaniumDemangle.cpp
-
37externals/demangle/llvm/Demangle/Demangle.h
-
4externals/demangle/llvm/Demangle/DemangleConfig.h
-
3778externals/demangle/llvm/Demangle/ItaniumDemangle.h
-
96externals/demangle/llvm/Demangle/ItaniumNodes.def
-
32externals/demangle/llvm/Demangle/StringView.h
-
39externals/demangle/llvm/Demangle/StringViewExtras.h
-
204externals/demangle/llvm/Demangle/Utility.h
-
2src/common/demangle.cpp
-
4src/common/detached_tasks.cpp
-
4src/core/hle/kernel/k_thread.cpp
-
6src/core/hle/kernel/kernel.cpp
-
4src/video_core/renderer_base.cpp
-
15src/video_core/renderer_opengl/gl_graphics_pipeline.cpp
-
8src/video_core/renderer_opengl/gl_shader_cache.cpp
-
33src/video_core/renderer_vulkan/vk_buffer_cache.cpp
-
12src/video_core/renderer_vulkan/vk_pipeline_cache.cpp
-
11src/video_core/renderer_vulkan/vk_query_cache.cpp
-
6src/video_core/renderer_vulkan/vk_texture_cache.cpp
-
6src/web_service/announce_room_json.cpp
3778
externals/demangle/llvm/Demangle/ItaniumDemangle.h
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,96 @@ |
|||||
|
//===--- ItaniumNodes.def ------------*- mode:c++;eval:(read-only-mode) -*-===// |
||||
|
// Do not edit! See README.txt. |
||||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
||||
|
// See https://llvm.org/LICENSE.txt for license information. |
||||
|
// SPDX-FileCopyrightText: Part of the LLVM Project |
||||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
||||
|
// |
||||
|
//===----------------------------------------------------------------------===// |
||||
|
// |
||||
|
// Define the demangler's node names |
||||
|
|
||||
|
#ifndef NODE |
||||
|
#error Define NODE to handle nodes |
||||
|
#endif |
||||
|
|
||||
|
NODE(NodeArrayNode) |
||||
|
NODE(DotSuffix) |
||||
|
NODE(VendorExtQualType) |
||||
|
NODE(QualType) |
||||
|
NODE(ConversionOperatorType) |
||||
|
NODE(PostfixQualifiedType) |
||||
|
NODE(ElaboratedTypeSpefType) |
||||
|
NODE(NameType) |
||||
|
NODE(AbiTagAttr) |
||||
|
NODE(EnableIfAttr) |
||||
|
NODE(ObjCProtoName) |
||||
|
NODE(PointerType) |
||||
|
NODE(ReferenceType) |
||||
|
NODE(PointerToMemberType) |
||||
|
NODE(ArrayType) |
||||
|
NODE(FunctionType) |
||||
|
NODE(NoexceptSpec) |
||||
|
NODE(DynamicExceptionSpec) |
||||
|
NODE(FunctionEncoding) |
||||
|
NODE(LiteralOperator) |
||||
|
NODE(SpecialName) |
||||
|
NODE(CtorVtableSpecialName) |
||||
|
NODE(QualifiedName) |
||||
|
NODE(NestedName) |
||||
|
NODE(LocalName) |
||||
|
NODE(ModuleName) |
||||
|
NODE(ModuleEntity) |
||||
|
NODE(VectorType) |
||||
|
NODE(PixelVectorType) |
||||
|
NODE(BinaryFPType) |
||||
|
NODE(BitIntType) |
||||
|
NODE(SyntheticTemplateParamName) |
||||
|
NODE(TypeTemplateParamDecl) |
||||
|
NODE(NonTypeTemplateParamDecl) |
||||
|
NODE(TemplateTemplateParamDecl) |
||||
|
NODE(TemplateParamPackDecl) |
||||
|
NODE(ParameterPack) |
||||
|
NODE(TemplateArgumentPack) |
||||
|
NODE(ParameterPackExpansion) |
||||
|
NODE(TemplateArgs) |
||||
|
NODE(ForwardTemplateReference) |
||||
|
NODE(NameWithTemplateArgs) |
||||
|
NODE(GlobalQualifiedName) |
||||
|
NODE(ExpandedSpecialSubstitution) |
||||
|
NODE(SpecialSubstitution) |
||||
|
NODE(CtorDtorName) |
||||
|
NODE(DtorName) |
||||
|
NODE(UnnamedTypeName) |
||||
|
NODE(ClosureTypeName) |
||||
|
NODE(StructuredBindingName) |
||||
|
NODE(BinaryExpr) |
||||
|
NODE(ArraySubscriptExpr) |
||||
|
NODE(PostfixExpr) |
||||
|
NODE(ConditionalExpr) |
||||
|
NODE(MemberExpr) |
||||
|
NODE(SubobjectExpr) |
||||
|
NODE(EnclosingExpr) |
||||
|
NODE(CastExpr) |
||||
|
NODE(SizeofParamPackExpr) |
||||
|
NODE(CallExpr) |
||||
|
NODE(NewExpr) |
||||
|
NODE(DeleteExpr) |
||||
|
NODE(PrefixExpr) |
||||
|
NODE(FunctionParam) |
||||
|
NODE(ConversionExpr) |
||||
|
NODE(PointerToMemberConversionExpr) |
||||
|
NODE(InitListExpr) |
||||
|
NODE(FoldExpr) |
||||
|
NODE(ThrowExpr) |
||||
|
NODE(BoolExpr) |
||||
|
NODE(StringLiteral) |
||||
|
NODE(LambdaExpr) |
||||
|
NODE(EnumLiteral) |
||||
|
NODE(IntegerLiteral) |
||||
|
NODE(FloatLiteral) |
||||
|
NODE(DoubleLiteral) |
||||
|
NODE(LongDoubleLiteral) |
||||
|
NODE(BracedExpr) |
||||
|
NODE(BracedRangeExpr) |
||||
|
|
||||
|
#undef NODE |
||||
@ -0,0 +1,39 @@ |
|||||
|
//===--- StringViewExtras.h ----------*- mode:c++;eval:(read-only-mode) -*-===// |
||||
|
// Do not edit! See README.txt. |
||||
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
||||
|
// See https://llvm.org/LICENSE.txt for license information. |
||||
|
// SPDX-FileCopyrightText: Part of the LLVM Project |
||||
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
||||
|
// |
||||
|
//===----------------------------------------------------------------------===// |
||||
|
// |
||||
|
// There are two copies of this file in the source tree. The one under |
||||
|
// libcxxabi is the original and the one under llvm is the copy. Use |
||||
|
// cp-to-llvm.sh to update the copy. See README.txt for more details. |
||||
|
// |
||||
|
//===----------------------------------------------------------------------===// |
||||
|
|
||||
|
#ifndef DEMANGLE_STRINGVIEW_H |
||||
|
#define DEMANGLE_STRINGVIEW_H |
||||
|
|
||||
|
#include "DemangleConfig.h" |
||||
|
|
||||
|
#include <string_view> |
||||
|
|
||||
|
DEMANGLE_NAMESPACE_BEGIN |
||||
|
|
||||
|
inline bool starts_with(std::string_view self, char C) noexcept { |
||||
|
return !self.empty() && *self.begin() == C; |
||||
|
} |
||||
|
|
||||
|
inline bool starts_with(std::string_view haystack, |
||||
|
std::string_view needle) noexcept { |
||||
|
if (needle.size() > haystack.size()) |
||||
|
return false; |
||||
|
haystack.remove_suffix(haystack.size() - needle.size()); |
||||
|
return haystack == needle; |
||||
|
} |
||||
|
|
||||
|
DEMANGLE_NAMESPACE_END |
||||
|
|
||||
|
#endif |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue