Update the code to be compatible with LLVM Coding Guidelines.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D95336
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,