[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 187786] New: Support file included recursively from within itself
From:       Robin Pedersen <robinpeder () gmail ! com>
Date:       2009-03-21 12:03:14
Message-ID: bug-187786-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=187786

           Summary: Support file included recursively from within itself
           Product: kdevelop
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: unspecified
            Status: NEW
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: robinpeder@gmail.com


Version:            (using KDE 4.2.1)
Installed from:    Compiled From Sources

The code parser reports an error and stops when it finds a pattern like this:

// foo.h
#ifndef FOO_H
#define FOO_H
typedef int foo;
#include "bar.h"
bar b;
#endif

// bar.h
#ifndef BAR_H
#define BAR_H
typedef int bar;
#include "foo.h"
foo f;
#endif

The GNU C/C++ compiler (or actually preprocessor) does not have a problem with
this, because there is no actual cycle, because of the header guards.

Depending on which of the files I (re)loaded most recently, either "bar b" or
"foo f" is reported as an error. The code browser tooltip doesn't show up in
any case.

Believe it or not, but this is actually used a lot in the project I'm currently
working on. And, as you probably know, QtGui/qaction.h also gives this "error".

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic