clang
15.0.0git
lib
ExtractAPI
TypedefUnderlyingTypeResolver.h
Go to the documentation of this file.
1
//===- ExtractAPI/TypedefUnderlyingTypeResolver.h ---------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
///
9
/// \file
10
/// This file defines the UnderlyingTypeResolver which is a helper type for
11
/// resolving the undelrying type for a given QualType and exposing that
12
/// information in various forms.
13
///
14
//===----------------------------------------------------------------------===//
15
16
#ifndef LLVM_CLANG_UNDERLYING_TYPE_RESOLVER_H
17
#define LLVM_CLANG_UNDERLYING_TYPE_RESOLVER_H
18
19
#include "
clang/AST/ASTContext.h
"
20
#include "
clang/AST/Decl.h
"
21
#include "
clang/ExtractAPI/API.h
"
22
23
#include <string>
24
25
namespace
clang
{
26
namespace
extractapi {
27
28
struct
TypedefUnderlyingTypeResolver
{
29
30
/// Get a SymbolReference for the given type.
31
SymbolReference
getSymbolReferenceForType
(
QualType
Type
,
APISet
&API)
const
;
32
33
/// Get a USR for the given type.
34
std::string
getUSRForType
(
QualType
Type
)
const
;
35
36
explicit
TypedefUnderlyingTypeResolver
(
ASTContext
&Context)
37
: Context(Context) {}
38
39
private
:
40
ASTContext
&Context;
41
};
42
43
}
// namespace extractapi
44
}
// namespace clang
45
46
#endif // LLVM_CLANG_UNDERLYING_TYPE_RESOLVER_H
string
string(SUBSTRING ${CMAKE_CURRENT_BINARY_DIR} 0 ${PATH_LIB_START} PATH_HEAD) string(SUBSTRING $
Definition:
CMakeLists.txt:22
clang::QualType
A (possibly-)qualified type.
Definition:
Type.h:731
clang::Type
The base class of the type hierarchy.
Definition:
Type.h:1556
Decl.h
clang::extractapi::TypedefUnderlyingTypeResolver
Definition:
TypedefUnderlyingTypeResolver.h:28
clang::ASTContext
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition:
ASTContext.h:209
ASTContext.h
clang::extractapi::TypedefUnderlyingTypeResolver::getSymbolReferenceForType
SymbolReference getSymbolReferenceForType(QualType Type, APISet &API) const
Get a SymbolReference for the given type.
Definition:
TypedefUnderlyingTypeResolver.cpp:50
clang::extractapi::TypedefUnderlyingTypeResolver::getUSRForType
std::string getUSRForType(QualType Type) const
Get a USR for the given type.
Definition:
TypedefUnderlyingTypeResolver.cpp:69
clang::extractapi::TypedefUnderlyingTypeResolver::TypedefUnderlyingTypeResolver
TypedefUnderlyingTypeResolver(ASTContext &Context)
Definition:
TypedefUnderlyingTypeResolver.h:36
API.h
clang
Definition:
CalledOnceCheck.h:17
clang::extractapi::APISet
APISet holds the set of API records collected from given inputs.
Definition:
API.h:471
clang::extractapi::SymbolReference
This represents a reference to another symbol that might come from external sources.
Definition:
API.h:314
Generated on Wed Jul 20 2022 15:25:28 for clang by
1.8.17