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

List:       kde-commits
Subject:    KDE/kdevelop/languages/cpp/parser/rpp
From:       David Nolden <david.nolden.kde () art-master ! de>
Date:       2008-03-31 22:18:18
Message-ID: 1207001898.072594.7913.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 792374 by zwabel:

Finally fix a hard to debug, annoying bug: Always correctly initialize the local \
location-table when resolving macro-arguments.

This fixes a problem where all the ranges in complete files were completely useless, \
                and thus the whole completion/navigation was also.
Example: languages/cpp/parser/parser.cpp in KDevelop-4 source.



 M  +2 -0      pp-macro-expander.cpp  


--- trunk/KDE/kdevelop/languages/cpp/parser/rpp/pp-macro-expander.cpp #792373:792374
@@ -332,6 +332,7 @@
               as.setOriginalInputPosition(input.originalInputPosition());///@todo \
What does originalInputPosition mean?  
               rpp::LocationTable table;
+              table.anchor(0, actualStart);
               Stream nas(&newActualText, actualStart, &table);
               expand_actual(as, nas);
               
@@ -365,6 +366,7 @@
 
               QByteArray actualText;
               rpp::LocationTable table;
+              table.anchor(0, actualStart);
               Stream nas(&newActualText, actualStart, &table);
               expand_actual(as, nas);
               


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

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