Scarab  2.8.1
Project 8 C++ Utility Library
Classes | Functions | Variables
mkdoc Namespace Reference

Classes

class  ExtractionThread
 
class  NoFilenamesError
 

Functions

def d (s)
 
def sanitize_name (name)
 
def process_comment (comment)
 
def extract (filename, node, prefix, output)
 
def read_args (args)
 
def extract_all (args)
 
def write_header (comments, out_file=sys.stdout)
 
def mkdoc (args)
 

Variables

list RECURSE_LIST
 
list PRINT_LIST
 
list PREFIX_BLACKLIST
 
dictionary CPP_OPERATORS
 
 job_count = cpu_count()
 
 job_semaphore = Semaphore(job_count)
 

Function Documentation

◆ d()

def mkdoc.d (   s)

Definition at line 69 of file mkdoc.py.

◆ extract()

def mkdoc.extract (   filename,
  node,
  prefix,
  output 
)

Definition at line 193 of file mkdoc.py.

◆ extract_all()

def mkdoc.extract_all (   args)

Definition at line 283 of file mkdoc.py.

◆ mkdoc()

def mkdoc.mkdoc (   args)

Definition at line 343 of file mkdoc.py.

◆ process_comment()

def mkdoc.process_comment (   comment)

Definition at line 83 of file mkdoc.py.

◆ read_args()

def mkdoc.read_args (   args)

Definition at line 235 of file mkdoc.py.

◆ sanitize_name()

def mkdoc.sanitize_name (   name)

Definition at line 73 of file mkdoc.py.

◆ write_header()

def mkdoc.write_header (   comments,
  out_file = sys.stdout 
)

Definition at line 297 of file mkdoc.py.

Variable Documentation

◆ CPP_OPERATORS

CPP_OPERATORS
Initial value:
1 = {
2  '<=': 'le', '>=': 'ge', '==': 'eq', '!=': 'ne', '[]': 'array',
3  '+=': 'iadd', '-=': 'isub', '*=': 'imul', '/=': 'idiv', '%=':
4  'imod', '&=': 'iand', '|=': 'ior', '^=': 'ixor', '<<=': 'ilshift',
5  '>>=': 'irshift', '++': 'inc', '--': 'dec', '<<': 'lshift', '>>':
6  'rshift', '&&': 'land', '||': 'lor', '!': 'lnot', '~': 'bnot',
7  '&': 'band', '|': 'bor', '+': 'add', '-': 'sub', '*': 'mul', '/':
8  'div', '%': 'mod', '<': 'lt', '>': 'gt', '=': 'assign', '()': 'call'
9 }

Definition at line 48 of file mkdoc.py.

◆ job_count

job_count = cpu_count()

Definition at line 61 of file mkdoc.py.

◆ job_semaphore

job_semaphore = Semaphore(job_count)

Definition at line 62 of file mkdoc.py.

◆ PREFIX_BLACKLIST

list PREFIX_BLACKLIST
Initial value:
1 = [
2  CursorKind.TRANSLATION_UNIT
3 ]

Definition at line 44 of file mkdoc.py.

◆ PRINT_LIST

list PRINT_LIST
Initial value:
1 = [
2  CursorKind.CLASS_DECL,
3  CursorKind.STRUCT_DECL,
4  CursorKind.ENUM_DECL,
5  CursorKind.ENUM_CONSTANT_DECL,
6  CursorKind.CLASS_TEMPLATE,
7  CursorKind.FUNCTION_DECL,
8  CursorKind.FUNCTION_TEMPLATE,
9  CursorKind.CONVERSION_FUNCTION,
10  CursorKind.CXX_METHOD,
11  CursorKind.CONSTRUCTOR,
12  CursorKind.FIELD_DECL
13 ]

Definition at line 30 of file mkdoc.py.

◆ RECURSE_LIST

list RECURSE_LIST
Initial value:
1 = [
2  CursorKind.TRANSLATION_UNIT,
3  CursorKind.NAMESPACE,
4  CursorKind.CLASS_DECL,
5  CursorKind.STRUCT_DECL,
6  CursorKind.ENUM_DECL,
7  CursorKind.CLASS_TEMPLATE
8 ]

Definition at line 21 of file mkdoc.py.