Some update.

This commit is contained in:
ykiko
2024-11-09 13:53:53 +08:00
parent 2f27dc2692
commit 511af1bd28
19 changed files with 144 additions and 54 deletions

View File

@@ -1,23 +0,0 @@
#include <Compiler/Clang.h>
namespace clice {
/// is this decl a definition?
bool isDefinition(const clang::Decl* decl);
/// Return the decl where it is instantiated from. If could be a template decl
/// or a member of a class template. If the decl is a full specialization, return
/// itself.
const clang::NamedDecl* instantiatedFrom(const clang::NamedDecl* decl);
/// To response go-to-type-definition request. Some decls actually have a type
/// for example the result of `typeof(var)` is the type of `var`. This function
/// returns the type for the decl if any.
clang::QualType typeForDecl(const clang::NamedDecl* decl);
/// Get the underlying decl for a type if any.
const clang::NamedDecl* declForType(clang::QualType type);
void dumpInclude(clang::SourceManager& srcMgr, clang::SourceLocation loc);
} // namespace clice