std::vector<Fragment> &
getFragments()
const{
returnFragments; }
139StringRef PreciseIdentifier =
"",
145Fragments.back().Spelling.append(Spelling.data(), Spelling.size());
147Fragments.emplace_back(Spelling,
Kind, PreciseIdentifier,
Declaration);
158 if(
Other.Fragments.empty())
161 if(Fragments.empty()) {
162Fragments = std::move(
Other.Fragments);
166 const auto&OtherFrags =
Other.Fragments;
167 autoToInsertBegin = std::make_move_iterator(
Other.begin());
168 autoToInsertEnd = std::make_move_iterator(
Other.end());
174 auto&TheirBackSpelling = OtherFrags.back().Spelling;
175It->Spelling.reserve(It->Spelling.size() + TheirBackSpelling.size());
176It->Spelling.insert(It->Spelling.begin(), TheirBackSpelling.begin(),
177TheirBackSpelling.end());
185 autoPrevIt = std::prev(It);
186 auto&TheirFrontSpelling = OtherFrags.front().Spelling;
187PrevIt->Spelling.reserve(PrevIt->Spelling.size() +
188TheirFrontSpelling.size());
189PrevIt->Spelling.append(TheirFrontSpelling);
193Fragments.insert(It, ToInsertBegin, ToInsertEnd);
198Fragments.pop_back();
203Fragments.at(Position).Spelling = NewSpelling;
238std::vector<Fragment> Fragments;
246 conststd::string &
getAccess()
const{
returnAccess; }
248 bool empty()
const{
returnAccess.empty(); }
269 conststd::vector<Parameter> &
getParameters()
const{
returnParameters; }
274Parameters.emplace_back(Name, Fragments);
285 returnParameters.empty() && ReturnType.
getFragments().empty();
289std::vector<Parameter> Parameters;
302 template<
typenameFunctionT>
315llvm_unreachable(
"Unhandled access control");
460template<
typenameFunctionT>
466ReturnType = getFragmentsForType(
Function->getReturnType(),
468 if(isa<FunctionDecl>(
Function) &&
469dyn_cast<FunctionDecl>(
Function)->getDescribedFunctionTemplate() &&
470StringRef(ReturnType.
begin()->Spelling).starts_with(
"type-parameter")) {
471std::string ProperArgName =
Function->getReturnType().getAsString();
472ReturnType.
begin()->Spelling.swap(ProperArgName);
474ReturnType.
append(std::move(After));
477 for(
const auto*Param :
Function->parameters())
478Signature.
addParameter(Param->getName(), getFragmentsForParam(Param));
Defines the clang::ASTContext interface.
enum clang::sema::@1704::IndirectLocalPathEntry::EntryKind Kind
Defines the C++ Decl subclasses, other than those for templates (found in DeclTemplate....
Defines the C++ template declaration subclasses.
Defines the clang::Expr interface and subclasses for C++ expressions.
Defines the clang::MacroInfo and clang::MacroDirective classes.
Defines various enumerations that describe declaration and type specifiers.
Defines the clang::TypeLoc interface and its subclasses.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Represents a block literal declaration, which is like an unnamed FunctionDecl.
Represents a C++ conversion function within a class.
Represents a static or instance method of a struct/union/class.
Represents a C++ struct/union/class.
Represents a class template specialization, which refers to a class template with a given set of temp...
Declaration of a C++20 concept.
Decl - This represents one declaration (or definition), e.g.
AccessSpecifier getAccess() const
An instance of this object exists for each enum constant that is defined.
Represents a member of a struct/union/class.
Represents a function declaration or definition.
Declaration of a template function.
Wrapper for source info for functions.
Encapsulates the data about a macro definition (e.g.
This represents a decl that may have a name.
Represent a C++ namespace.
Represents a C++ nested name specifier, such as "\::std::vector<int>::".
ObjCCategoryDecl - Represents a category declaration.
Represents an ObjC class declaration.
ObjCMethodDecl - Represents an instance or class method declaration.
Represents one property declaration in an Objective-C interface.
Represents an Objective-C protocol declaration.
Represents a parameter to a function.
A (possibly-)qualified type.
The collection of all-type qualifiers we support.
Represents a struct/union/class.
Declaration of a redeclarable template.
The base class of the type hierarchy.
Base class for declarations which introduce a typedef-name.
Represents a variable declaration or definition.
Represents a variable template specialization, which refers to a variable template with a given set o...
The JSON file list parser is used to communicate input to InstallAPI.
@ Other
Other implicit parameter.
ExceptionSpecificationType
The various types of exception specifications that exist in C++11.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4