|
LLVM
7.0.0
|
"Partial" demangler. More...
#include "llvm/Demangle/Demangle.h"
Public Member Functions | |
| ItaniumPartialDemangler () | |
| ItaniumPartialDemangler (ItaniumPartialDemangler &&Other) | |
| ItaniumPartialDemangler & | operator= (ItaniumPartialDemangler &&Other) |
| bool | partialDemangle (const char *MangledName) |
| Demangle into an AST. More... | |
| char * | finishDemangle (char *Buf, size_t *N) const |
| Just print the entire mangled name into Buf. More... | |
| char * | getFunctionBaseName (char *Buf, size_t *N) const |
| Get the base name of a function. More... | |
| char * | getFunctionDeclContextName (char *Buf, size_t *N) const |
| Get the context name for a function. More... | |
| char * | getFunctionName (char *Buf, size_t *N) const |
| Get the entire name of this function. More... | |
| char * | getFunctionParameters (char *Buf, size_t *N) const |
| Get the parameters for this function. More... | |
| char * | getFunctionReturnType (char *Buf, size_t *N) const |
| bool | hasFunctionQualifiers () const |
| If this function has any any cv or reference qualifiers. More... | |
| bool | isCtorOrDtor () const |
| If this symbol describes a constructor or destructor. More... | |
| bool | isFunction () const |
| If this symbol describes a function. More... | |
| bool | isData () const |
| If this symbol describes a variable. More... | |
| bool | isSpecialName () const |
| If this symbol is a <special-name>. More... | |
| ~ItaniumPartialDemangler () | |
"Partial" demangler.
This supports demangling a string into an AST (typically an intermediate stage in itaniumDemangle) and querying certain properties or partially printing the demangled name.
Definition at line 36 of file Demangle.h.
| llvm::ItaniumPartialDemangler::ItaniumPartialDemangler | ( | ) |
Definition at line 4989 of file ItaniumDemangle.cpp.
| llvm::ItaniumPartialDemangler::ItaniumPartialDemangler | ( | ItaniumPartialDemangler && | Other | ) |
Definition at line 4996 of file ItaniumDemangle.cpp.
References operator=(), and Other.
| llvm::ItaniumPartialDemangler::~ItaniumPartialDemangler | ( | ) |
Definition at line 4992 of file ItaniumDemangle.cpp.
Just print the entire mangled name into Buf.
Buf and N behave like the second and third parameters to itaniumDemangle.
Definition at line 5148 of file ItaniumDemangle.cpp.
References assert(), and llvm::printNode().
Get the base name of a function.
This doesn't include trailing template arguments, ie for "a::b<int>" this function returns "b".
Definition at line 5029 of file ItaniumDemangle.cpp.
References getName(), isFunction(), and llvm::printNode().
Get the context name for a function.
For "a::b::c", this function returns "a::b".
Definition at line 5058 of file ItaniumDemangle.cpp.
References OutputStream::getBuffer(), OutputStream::getCurrentPosition(), getName(), and isFunction().
Get the entire name of this function.
Definition at line 5104 of file ItaniumDemangle.cpp.
References getName(), isFunction(), and llvm::printNode().
Get the parameters for this function.
Definition at line 5111 of file ItaniumDemangle.cpp.
References OutputStream::getBuffer(), OutputStream::getCurrentPosition(), and isFunction().
Definition at line 5130 of file ItaniumDemangle.cpp.
References OutputStream::getBuffer(), OutputStream::getCurrentPosition(), isFunction(), and llvm::MipsISD::Ret.
| bool llvm::ItaniumPartialDemangler::hasFunctionQualifiers | ( | ) | const |
If this function has any any cv or reference qualifiers.
These imply that the function is a non-static member function.
Definition at line 5153 of file ItaniumDemangle.cpp.
References assert(), E, and isFunction().
| bool llvm::ItaniumPartialDemangler::isCtorOrDtor | ( | ) | const |
If this symbol describes a constructor or destructor.
Definition at line 5161 of file ItaniumDemangle.cpp.
| bool llvm::ItaniumPartialDemangler::isData | ( | ) | const |
If this symbol describes a variable.
Definition at line 5204 of file ItaniumDemangle.cpp.
References isFunction(), and isSpecialName().
| bool llvm::ItaniumPartialDemangler::isFunction | ( | ) | const |
If this symbol describes a function.
Definition at line 5193 of file ItaniumDemangle.cpp.
References assert().
Referenced by getFunctionBaseName(), getFunctionDeclContextName(), getFunctionName(), getFunctionParameters(), getFunctionReturnType(), hasFunctionQualifiers(), and isData().
| bool llvm::ItaniumPartialDemangler::isSpecialName | ( | ) | const |
If this symbol is a <special-name>.
These are generally implicitly generated by the implementation, such as vtables and typeinfo names.
Definition at line 5198 of file ItaniumDemangle.cpp.
References assert().
Referenced by isData().
| ItaniumPartialDemangler & llvm::ItaniumPartialDemangler::operator= | ( | ItaniumPartialDemangler && | Other | ) |
Definition at line 5003 of file ItaniumDemangle.cpp.
References Other, and std::swap().
Referenced by ItaniumPartialDemangler().
Demangle into an AST.
Subsequent calls to the rest of the member functions implicitly operate on the AST this produces.
Definition at line 5010 of file ItaniumDemangle.cpp.
1.8.13