Scarab  2.8.1
Project 8 C++ Utility Library
Public Member Functions | Static Public Member Functions | List of all members
CompilationDatabase Class Reference
Inheritance diagram for CompilationDatabase:
Inheritance graph

Public Member Functions

def __del__ (self)
 
def getCompileCommands (self, filename)
 
def getAllCompileCommands (self)
 
- Public Member Functions inherited from ClangObject
def __init__ (self, obj)
 
def from_param (self)
 

Static Public Member Functions

def from_result (res, fn, args)
 
def fromDirectory (buildDir)
 

Additional Inherited Members

- Public Attributes inherited from ClangObject
 obj
 

Detailed Description

The CompilationDatabase is a wrapper class around
clang::tooling::CompilationDatabase

It enables querying how a specific source file can be built.

Definition at line 2931 of file cindex.py.

Constructor & Destructor Documentation

◆ __del__()

def __del__ (   self)

Definition at line 2939 of file cindex.py.

Member Function Documentation

◆ from_result()

def from_result (   res,
  fn,
  args 
)
static

Definition at line 2943 of file cindex.py.

◆ fromDirectory()

def fromDirectory (   buildDir)
static
Builds a CompilationDatabase from the database found in buildDir

Definition at line 2950 of file cindex.py.

◆ getAllCompileCommands()

def getAllCompileCommands (   self)
Get an iterable object providing all the CompileCommands available from
the database.

Definition at line 2969 of file cindex.py.

◆ getCompileCommands()

def getCompileCommands (   self,
  filename 
)
Get an iterable object providing all the CompileCommands available to
build filename. Returns None if filename is not found in the database.

Definition at line 2961 of file cindex.py.


The documentation for this class was generated from the following file: