HPCToolkit
CmdLineParser.cpp File Reference
#include <cstdlib>
#include <cstring>
#include <cerrno>
#include <algorithm>
#include "CmdLineParser.hpp"
#include "diagnostics.h"
#include "StrUtil.hpp"
Include dependency graph for CmdLineParser.cpp:

Go to the source code of this file.

Classes

struct  lt_OptArgDesc
 

Functions

static bool isDashDash (const char *str)
 
static bool isLongSwitch (const char *str)
 
static bool isShortSwitch (const char *str)
 
static bool isSwitch (const char *str)
 
static bool isArg (const char *str)
 

Variables

static string MISSING_SWITCH = "Missing switch after -"
 
static string UNKNOWN_SWITCH = "Unknown option switch: "
 
static string MISSING_ARG = "Missing argument for switch: "
 

Function Documentation

◆ isArg()

static bool isArg ( const char *  str)
inlinestatic

Definition at line 157 of file CmdLineParser.cpp.

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

◆ isDashDash()

static bool isDashDash ( const char *  str)
inlinestatic

Definition at line 126 of file CmdLineParser.cpp.

Here is the caller graph for this function:

◆ isLongSwitch()

static bool isLongSwitch ( const char *  str)
inlinestatic

Definition at line 136 of file CmdLineParser.cpp.

Here is the caller graph for this function:

◆ isShortSwitch()

static bool isShortSwitch ( const char *  str)
inlinestatic

Definition at line 142 of file CmdLineParser.cpp.

Here is the caller graph for this function:

◆ isSwitch()

static bool isSwitch ( const char *  str)
inlinestatic

Definition at line 148 of file CmdLineParser.cpp.

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

Variable Documentation

◆ MISSING_ARG

string MISSING_ARG = "Missing argument for switch: "
static

Definition at line 85 of file CmdLineParser.cpp.

◆ MISSING_SWITCH

string MISSING_SWITCH = "Missing switch after -"
static

Definition at line 83 of file CmdLineParser.cpp.

◆ UNKNOWN_SWITCH

string UNKNOWN_SWITCH = "Unknown option switch: "
static

Definition at line 84 of file CmdLineParser.cpp.