C# Class ClangVSx.CVXConnect

The object for implementing an Add-in.
Inheritance: IDTExtensibility2, IDTCommandTarget, IBuildCancellation
Show file Open project: ilibis/ClangVSx

Public Methods

Method Description
CVXConnect ( ) : System

Implements the constructor for the Add-in object. Place your initialization code within this method.

Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.

OnAddInsUpdate ( Array &custom ) : void

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.

OnBeginShutdown ( Array &custom ) : void

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.

OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.

OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.

OnStartupComplete ( Array &custom ) : void

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.

QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated

Protected Methods

Method Description
cvxAnalyseFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void

get the active code file and compile it, adding static analyzer arguments to the pile

cvxCompileFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void

get the active code file and compile it

cvxDasmnFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void

ask clang to emit assembly listing for the given file, then pop that result open in VS

cvxPreProFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void

dump the preprocessor and native-assembly format listing

Private Methods

Method Description
GetActiveVCFile ( VCFile &vcFile, VCProject &vcProject, VCConfiguration &vcCfg ) : bool

Get the active code file, project and configuration

GetCommandFullName ( string cmdName ) : string
GetCommandShortName ( string fullCmdName ) : string
ReportBuildInProgress ( ) : void
ShowCVXSettingsDialog ( ) : void

display our settings panel

Method Details

CVXConnect() public method

Implements the constructor for the Add-in object. Place your initialization code within this method.
public CVXConnect ( ) : System
return System

Exec() public method

Implements the Exec method of the IDTCommandTarget interface. This is called when the command is invoked.
public Exec ( string commandName, vsCommandExecOption executeOption, object &varIn, object &varOut, bool &handled ) : void
commandName string
executeOption vsCommandExecOption
varIn object
varOut object
handled bool
return void

OnAddInsUpdate() public method

Implements the OnAddInsUpdate method of the IDTExtensibility2 interface. Receives notification when the collection of Add-ins has changed.
public OnAddInsUpdate ( Array &custom ) : void
custom System.Array
return void

OnBeginShutdown() public method

Implements the OnBeginShutdown method of the IDTExtensibility2 interface. Receives notification that the host application is being unloaded.
public OnBeginShutdown ( Array &custom ) : void
custom System.Array
return void

OnConnection() public method

Implements the OnConnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being loaded.
public OnConnection ( object application, ext_ConnectMode connectMode, object addInInst, Array &custom ) : void
application object
connectMode ext_ConnectMode
addInInst object
custom System.Array
return void

OnDisconnection() public method

Implements the OnDisconnection method of the IDTExtensibility2 interface. Receives notification that the Add-in is being unloaded.
public OnDisconnection ( ext_DisconnectMode disconnectMode, Array &custom ) : void
disconnectMode ext_DisconnectMode
custom System.Array
return void

OnStartupComplete() public method

Implements the OnStartupComplete method of the IDTExtensibility2 interface. Receives notification that the host application has completed loading.
public OnStartupComplete ( Array &custom ) : void
custom System.Array
return void

QueryStatus() public method

Implements the QueryStatus method of the IDTCommandTarget interface. This is called when the command's availability is updated
public QueryStatus ( string commandName, vsCommandStatusTextWanted neededText, vsCommandStatus &status, object &commandText ) : void
commandName string
neededText vsCommandStatusTextWanted
status vsCommandStatus
commandText object
return void

cvxAnalyseFile_menuop() protected method

get the active code file and compile it, adding static analyzer arguments to the pile
protected cvxAnalyseFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void
CommandaBarControl object
handled bool
cancelDefault bool
return void

cvxCompileFile_menuop() protected method

get the active code file and compile it
protected cvxCompileFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void
CommandaBarControl object
handled bool
cancelDefault bool
return void

cvxDasmnFile_menuop() protected method

ask clang to emit assembly listing for the given file, then pop that result open in VS
protected cvxDasmnFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void
CommandaBarControl object
handled bool
cancelDefault bool
return void

cvxPreProFile_menuop() protected method

dump the preprocessor and native-assembly format listing
protected cvxPreProFile_menuop ( object CommandaBarControl, bool &handled, bool &cancelDefault ) : void
CommandaBarControl object
handled bool
cancelDefault bool
return void