Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343469 - function not shown in outline when surrounded by preprocessor if statement
Summary: function not shown in outline when surrounded by preprocessor if statement
Status: CLOSED INVALID
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Editor & Outline View (show other bugs)
Version: 6.0.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-20 21:26 EDT by Missing name CLA
Modified: 2011-04-22 09:38 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Missing name CLA 2011-04-20 21:26:26 EDT
This is actually using Photran 6.0.6

The following code is not parsed properly: the function does not appear in the outline:

#if defined(boo)
function test(a)
	implicit none
end function
#endif
Comment 1 Missing name CLA 2011-04-22 09:38:20 EDT
Correction: this is not a bug.

I was not taking into account the fact that (I'm guessing) the outline is derived from the preprocessed source.
The solution to my problem was to define the symbol (boo in the example) in Project>Properties>Fortran General>Paths and symbols>Symbols.

Apologies for the noise.