kbobyrev created this revision. kbobyrev added reviewers: kadircet, sammccall. kbobyrev requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Update the code to be compatible with LLVM Coding Guidelines. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D95336 Files: clang/lib/AST/DeclBase.cpp Index: clang/lib/AST/DeclBase.cpp =================================================================== --- clang/lib/AST/DeclBase.cpp +++ clang/lib/AST/DeclBase.cpp @@ -1171,10 +1171,8 @@ bool DeclContext::isTransparentContext() const { if (getDeclKind() == Decl::Enum) return !cast<EnumDecl>(this)->isScoped(); - else if (getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export) - return true; - return false; + return getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export; } static bool isLinkageSpecContext(const DeclContext *DC,
Index: clang/lib/AST/DeclBase.cpp =================================================================== --- clang/lib/AST/DeclBase.cpp +++ clang/lib/AST/DeclBase.cpp @@ -1171,10 +1171,8 @@ bool DeclContext::isTransparentContext() const { if (getDeclKind() == Decl::Enum) return !cast<EnumDecl>(this)->isScoped(); - else if (getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export) - return true; - return false; + return getDeclKind() == Decl::LinkageSpec || getDeclKind() == Decl::Export; } static bool isLinkageSpecContext(const DeclContext *DC,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits