mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 00:46:32 +02:00
lazc: cleaned up
git-svn-id: trunk@45356 -
This commit is contained in:
parent
467c14c162
commit
c6344b436c
@ -38,22 +38,6 @@ uses
|
|||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
{ TGCCMessageScanner }
|
|
||||||
|
|
||||||
TGCCMessageScanner = class(TIDEMsgScanner)
|
|
||||||
public
|
|
||||||
function ParseLine(MsgLine: TIDEMessageLine; var Show: boolean): boolean; override;// true if line was handled
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TGCCMsgScannerType }
|
|
||||||
|
|
||||||
TGCCMsgScannerType = class(TIDEMsgScannerType)
|
|
||||||
public
|
|
||||||
function ShortDescription: string; override;
|
|
||||||
function Description: string; override;
|
|
||||||
function StartScan(Lines: TIDEMessageLineList): TIDEMsgScanner; override;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TCSrcEditCompletion }
|
{ TCSrcEditCompletion }
|
||||||
|
|
||||||
TCSrcEditCompletion = class(TSourceEditorCompletionPlugin)
|
TCSrcEditCompletion = class(TSourceEditorCompletionPlugin)
|
||||||
@ -92,43 +76,11 @@ procedure Register;
|
|||||||
implementation
|
implementation
|
||||||
|
|
||||||
procedure Register;
|
procedure Register;
|
||||||
var
|
|
||||||
Scanner: TGCCMsgScannerType;
|
|
||||||
begin
|
begin
|
||||||
Scanner:=TGCCMsgScannerType.Create(nil);
|
|
||||||
Scanner.Name:='GCC';
|
|
||||||
IDEMsgScanners.RegisterType(Scanner);
|
|
||||||
CSrcEditCompletion:=TCSrcEditCompletion.Create(nil);
|
CSrcEditCompletion:=TCSrcEditCompletion.Create(nil);
|
||||||
SourceEditorManagerIntf.RegisterCompletionPlugin(CSrcEditCompletion);
|
SourceEditorManagerIntf.RegisterCompletionPlugin(CSrcEditCompletion);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TGCCMessageScanner }
|
|
||||||
|
|
||||||
function TGCCMessageScanner.ParseLine(MsgLine: TIDEMessageLine;
|
|
||||||
var Show: boolean): boolean;
|
|
||||||
begin
|
|
||||||
DebugLn(['TGCCMessageScanner.ParseLine "',MsgLine.Msg,'"']);
|
|
||||||
Result:=false;
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TGCCMsgScannerType }
|
|
||||||
|
|
||||||
function TGCCMsgScannerType.ShortDescription: string;
|
|
||||||
begin
|
|
||||||
Result:=lcGNUProjectCAndCCompiler;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TGCCMsgScannerType.Description: string;
|
|
||||||
begin
|
|
||||||
Result:=ShortDescription;
|
|
||||||
end;
|
|
||||||
|
|
||||||
function TGCCMsgScannerType.StartScan(Lines: TIDEMessageLineList
|
|
||||||
): TIDEMsgScanner;
|
|
||||||
begin
|
|
||||||
Result:=TGCCMessageScanner.Create(Self,Lines);
|
|
||||||
end;
|
|
||||||
|
|
||||||
{ TCSrcEditCompletion }
|
{ TCSrcEditCompletion }
|
||||||
|
|
||||||
procedure TCSrcEditCompletion.SetLastPrefix(const AValue: string);
|
procedure TCSrcEditCompletion.SetLastPrefix(const AValue: string);
|
||||||
|
Loading…
Reference in New Issue
Block a user