Skip to content

Commit

Permalink
[clang] NFC: Remove else if after return
Browse files Browse the repository at this point in the history
Update the code to be compatible with LLVM Coding Guidelines.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D95336
  • Loading branch information
kirillbobyrev committed Jan 25, 2021
1 parent 3747eb9 commit 7e5d41a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions clang/lib/AST/DeclBase.cpp
Expand Up @@ -1171,10 +1171,8 @@ bool DeclContext::isDependentContext() const {
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,
Expand Down

0 comments on commit 7e5d41a

Please sign in to comment.