ΒΆconst clang::DeclContext*
getDefinitiveDeclContext(
    const clang::DeclContext* DC)

Description

Retrieve the "definitive" declaration that provides all of the visible entries for the given declaration context, if there is one. The "definitive" declaration is the only place where we need to look to find information about the declarations within the given declaration context. For example, C++ and Objective-C classes, C structs/unions, and Objective-C protocols, categories, and extensions are all defined in a single place in the source code, so they have definitive declarations associated with them. C++ namespaces, on the other hand, can have multiple definitions.

Declared at: clang/lib/Serialization/ASTCommon.h:85

Parameters

const clang::DeclContext* DC