CppParser
Loading...
Searching...
No Matches
utils.cpp File Reference
#include "cpputil.h"
#include "utils.h"
#include <fstream>
Include dependency graph for utils.cpp:

Go to the source code of this file.

Functions

static CppToken classNameFromTemplatedIdentifier (const CppToken &identifier)
 
CppToken classNameFromIdentifier (const CppToken &identifier)
 
std::string readFile (const std::string &filename)
 
void collectFiles (std::vector< std::string > &files, const fs::path &path, const CppProgFileSelecter &fileSelector)
 
std::vector< CppTokenexplode (CppToken token, const char *delim)
 
std::string pruneClassName (const CppToken &identifier)
 

Function Documentation

◆ classNameFromIdentifier()

CppToken classNameFromIdentifier ( const CppToken identifier)

Definition at line 59 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ classNameFromTemplatedIdentifier()

static CppToken classNameFromTemplatedIdentifier ( const CppToken identifier)
static

Definition at line 32 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ collectFiles()

void collectFiles ( std::vector< std::string > &  files,
const fs::path &  path,
const CppProgFileSelecter fileSelector 
)

Definition at line 101 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ explode()

std::vector< CppToken > explode ( CppToken  token,
const char *  delim 
)

Definition at line 121 of file utils.cpp.

◆ pruneClassName()

std::string pruneClassName ( const CppToken identifier)

Definition at line 144 of file utils.cpp.

◆ readFile()

std::string readFile ( const std::string &  filename)

Definition at line 79 of file utils.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: