CppParser
Loading...
Searching...
No Matches
cpptoken.h File Reference
#include <cstring>
#include <memory>
#include <string>
#include <vector>
Include dependency graph for cpptoken.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CppToken
 
struct  CppNtMemInit
 
struct  CppNtFuncDeclData
 

Typedefs

using CppObjPtr = std::unique_ptr< CppObj >
 
using CppParamVector = std::vector< CppObjPtr >
 

Functions

CppToken makeCppToken (const char *sz, size_t len)
 Since CppToken cannot have ctor (because it is intended to be used inside union). More...
 
CppToken makeCppToken (const char *beg, const char *end)
 
CppToken mergeCppToken (const CppToken &token1, const CppToken &token2)
 
template<typename _ST >
_ST & operator<< (_ST &stm, const CppToken &token)
 

Typedef Documentation

◆ CppObjPtr

using CppObjPtr = std::unique_ptr<CppObj>

Definition at line 109 of file cpptoken.h.

◆ CppParamVector

using CppParamVector = std::vector<CppObjPtr>

Definition at line 110 of file cpptoken.h.

Function Documentation

◆ makeCppToken() [1/2]

CppToken makeCppToken ( const char *  beg,
const char *  end 
)
inline

Definition at line 73 of file cpptoken.h.

Here is the call graph for this function:

◆ makeCppToken() [2/2]

CppToken makeCppToken ( const char *  sz,
size_t  len 
)
inline

Since CppToken cannot have ctor (because it is intended to be used inside union).

Definition at line 67 of file cpptoken.h.

Here is the caller graph for this function:

◆ mergeCppToken()

CppToken mergeCppToken ( const CppToken token1,
const CppToken token2 
)
inline

Definition at line 78 of file cpptoken.h.

Here is the call graph for this function:

◆ operator<<()

template<typename _ST >
_ST & operator<< ( _ST &  stm,
const CppToken token 
)
inline

Definition at line 88 of file cpptoken.h.