[Bug 53344] New: C++ Parser incorrect in #define environments

Christoph Bartoschek bartoschek at gmx.de
Fri Jan 24 12:27:04 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=53344     
           Summary: C++ Parser incorrect in #define environments
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at barney.cs.uni-potsdam.de
        ReportedBy: bartoschek at gmx.de


Version:           Gideon (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          g++ 3.2 
OS:          Linux

If you have a funtion which looks like this

void hulgo
#ifdef HUHU
   (int a, int b)
#else
   (int a, int b, int c)
#endif
{
   if (a == b) return true;
}

Gideon sees two funtions:

void hulgo( int a, int b )
if ( a )

I don't know how this should be parsed, but if ( a ) should not appear.

Another point: 
in kdevelop/parts/appwizard/imports/cpp.kdevelop I find:

  <ignoreparts>
   <part>KDevFileView</part>
  </ignoreparts>

Why do you ignore KDeVFileView? I have to comment this out in the resulting .kdevelop file




More information about the KDevelop-devel mailing list