[PATCH] D95336: [clang] NFC: Remove else if after return
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 25 01:58:58 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7e5d41a68255: [clang] NFC: Remove else if after return (authored by kbobyrev).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95336/new/
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95336.318926.patch
Type: text/x-patch
Size: 579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210125/e760c4ae/attachment.bin>
More information about the cfe-commits
mailing list