CCCC - C and C++ Code Counter  9999-git
CCCC Development version (post-3.1.4)
Classes | Macros | Enumerations | Functions | Variables
cccc_utl.h File Reference
#include "cccc.h"
#include <map>
#include <vector>
#include "cccc_tok.h"
#include "AParser.h"
Include dependency graph for cccc_utl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ANTLR_Assisted_Parser
 
class  ParseUtility
 
class  ParseStore
 

Macros

#define MAX_STACK_DEPTH   1000
 

Enumerations

enum  Language {
  lAUTO, lCPLUSPLUS, lANSIC, lJAVA,
  lADA
}
 
enum  Visibility {
  vPUBLIC ='0', vPROTECTED ='1', vPRIVATE ='2', vIMPLEMENTATION ='3',
  vDONTKNOW ='?', vDONTCARE ='X', vINVALID ='*'
}
 
enum  AugmentedBool {
  abFALSE ='F', abTRUE ='T', abDONTKNOW ='?', abDONTCARE ='X',
  abINVALID ='*'
}
 
enum  UseType {
  utDECLARATION ='D', utDEFINITION ='d', utINHERITS ='I', utHASBYVAL ='H',
  utHASBYREF ='h', utPARBYVAL ='P', utPARBYREF ='p', utVARBYVAL ='V',
  utVARBYREF ='v', utTEMPLATE_NAME ='T', utTEMPLATE_TYPE ='t', utINVOKES ='i',
  utREJECTED ='r', utWITH ='w', utDONTKNOW ='?', utDONTCARE ='X',
  utINVALID ='*'
}
 
enum  PSString {
  pssFILE, pssRULE, pssFLAGS, pssMODTYPE,
  pssMODULE, pssUTYPE, pssINDIR, pssITYPE,
  pssMEMBER, pssPARAMS, pssDESCRIPTION, pssLAST
}
 
enum  PSFlag {
  psfCONST, psfSTATIC, psfEXTERN, psfVIRTUAL,
  psfVISIBILITY, psfLAST
}
 
enum  PSVerbosity { psvSILENT, psvQUIET, psvLOUD }
 
enum  LexicalCount { tcCOMLINES, tcCODELINES, tcMCCABES_VG, tcLAST }
 

Functions

ostream & operator<< (ostream &, Visibility)
 
istream & operator>> (istream &, Visibility &)
 
ostream & operator<< (ostream &os, AugmentedBool ab)
 
istream & operator>> (istream &is, AugmentedBool &ab)
 

Variables

Language global_language
 
Language file_language
 

Macro Definition Documentation

#define MAX_STACK_DEPTH   1000

Definition at line 105 of file cccc_utl.h.

Enumeration Type Documentation

Enumerator
abFALSE 
abTRUE 
abDONTKNOW 
abDONTCARE 
abINVALID 

Definition at line 59 of file cccc_utl.h.

59  {
60  abFALSE='F', abTRUE='T', abDONTKNOW='?', abDONTCARE='X', abINVALID='*'
61 };
enum Language
Enumerator
lAUTO 
lCPLUSPLUS 
lANSIC 
lJAVA 
lADA 

Definition at line 49 of file cccc_utl.h.

Definition: cccc_utl.h:49
Definition: cccc_utl.h:49
Definition: cccc_utl.h:49
Enumerator
tcCOMLINES 
tcCODELINES 
tcMCCABES_VG 
tcLAST 

Definition at line 195 of file cccc_utl.h.

enum PSFlag
Enumerator
psfCONST 
psfSTATIC 
psfEXTERN 
psfVIRTUAL 
psfVISIBILITY 
psfLAST 

Definition at line 98 of file cccc_utl.h.

98  {
99  psfCONST, psfSTATIC, psfEXTERN, psfVIRTUAL, // AugmentedBool
100  psfVISIBILITY, // Visibility
101  psfLAST // used to dimension the array
102 };
enum PSString
Enumerator
pssFILE 
pssRULE 
pssFLAGS 
pssMODTYPE 
pssMODULE 
pssUTYPE 
pssINDIR 
pssITYPE 
pssMEMBER 
pssPARAMS 
pssDESCRIPTION 
pssLAST 

Definition at line 87 of file cccc_utl.h.

87  {
88  pssFILE, pssRULE, pssFLAGS, // the context of the parse
89  pssMODTYPE, pssMODULE, // the syntactic class and name of the module
90  pssUTYPE, // unqualified type of the current member
91  pssINDIR, // indirection associated with the type above
92  pssITYPE, // type qualified with indirection
93  pssMEMBER, pssPARAMS, // name, parameter list of a member
94  pssDESCRIPTION, // textual description of the relationship type
95  pssLAST // used to dimension the array
96 };
Enumerator
psvSILENT 
psvQUIET 
psvLOUD 

Definition at line 103 of file cccc_utl.h.

enum UseType
Enumerator
utDECLARATION 
utDEFINITION 
utINHERITS 
utHASBYVAL 
utHASBYREF 
utPARBYVAL 
utPARBYREF 
utVARBYVAL 
utVARBYREF 
utTEMPLATE_NAME 
utTEMPLATE_TYPE 
utINVOKES 
utREJECTED 
utWITH 
utDONTKNOW 
utDONTCARE 
utINVALID 

Definition at line 65 of file cccc_utl.h.

65  {
66  utDECLARATION='D', utDEFINITION='d', // of methods and classes
67  utINHERITS='I', // inheritance, including Java
68  // extends and implements relations
69  utHASBYVAL='H', utHASBYREF='h', // class data member
70  utPARBYVAL='P', utPARBYREF='p', // method parameter or return value
71  utVARBYVAL='V', utVARBYREF='v', // local variable within a method
72  utTEMPLATE_NAME='T', // typedef alias for a template
73  utTEMPLATE_TYPE='t', // type over which a template is
74  // instantiated
75  utINVOKES='i', // C function invocation
76  utREJECTED='r', // for extents rejected by the parser
77  utWITH='w', // Ada 'with' keyword context
78  utDONTKNOW='?', utDONTCARE='X', utINVALID='*'
79 };
enum Visibility
Enumerator
vPUBLIC 
vPROTECTED 
vPRIVATE 
vIMPLEMENTATION 
vDONTKNOW 
vDONTCARE 
vINVALID 

Definition at line 52 of file cccc_utl.h.

52  {
53  vPUBLIC='0',vPROTECTED='1',vPRIVATE='2',vIMPLEMENTATION='3',
54  vDONTKNOW='?',vDONTCARE='X',vINVALID='*'
55 };

Function Documentation

ostream& operator<< ( ostream &  ,
Visibility   
)

Definition at line 79 of file cccc_utl.cc.

79  {
80  insert_enum(os,v);
81  return os;
82 }
void insert_enum(ostream &os, int e)
Definition: cccc_utl.cc:57

Here is the call graph for this function:

ostream& operator<< ( ostream &  os,
AugmentedBool  ab 
)

Definition at line 69 of file cccc_utl.cc.

69  {
70  insert_enum(os,ab);
71  return os;
72 }
void insert_enum(ostream &os, int e)
Definition: cccc_utl.cc:57

Here is the call graph for this function:

istream& operator>> ( istream &  ,
Visibility  
)

Definition at line 84 of file cccc_utl.cc.

84  {
85  extract_enum(is,(int&)v);
86  return is;
87 }
void extract_enum(istream &is, int &e)
Definition: cccc_utl.cc:62

Here is the call graph for this function:

istream& operator>> ( istream &  is,
AugmentedBool ab 
)

Definition at line 74 of file cccc_utl.cc.

74  {
75  extract_enum(is,(int&)ab);
76  return is;
77 }
void extract_enum(istream &is, int &e)
Definition: cccc_utl.cc:62

Here is the call graph for this function:

Variable Documentation

Language file_language
Language global_language