IDE: codehelp: used unit: search unit header

git-svn-id: trunk@32460 -
This commit is contained in:
mattias 2011-09-22 20:59:24 +00:00
parent e59acfda40
commit fb881dac0d

View File

@ -2273,9 +2273,14 @@ begin
try
// find declaration
if not CodeToolBoss.CurCodeTool.FindDeclaration(CursorPos,
DefaultFindSmartHintFlags,CTTool,CTNode,XYPos,aTopLine)
DefaultFindSmartHintFlags+[fsfSearchSourceName],
CTTool,CTNode,XYPos,aTopLine)
then
exit;
if (CTNode=nil) then begin
// codetools found a source file, not a declararion
exit;
end;
if chhoDeclarationHeader in Options then begin
HTMLHint:=HTMLHint+'<div class="header">';