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

List:       kdevelop-bugs
Subject:    [Bug 299310] Element type is incorrectly deduced in range-based for loop with QVector
From:       Milian Wolff <mail () milianw ! de>
Date:       2012-05-14 19:25:15
Message-ID: bug-299310-40295-fISYjOMCtN () http ! bugs ! kde ! org/
[Download RAW message or body]

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

Milian Wolff <mail@milianw.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/kdev
                   |                            |elop/25c9de709d85f6288ea2dc
                   |                            |c68ee2ef15125015be

--- Comment #1 from Milian Wolff <mail@milianw.de> ---
Git commit 25c9de709d85f6288ea2dcc68ee2ef15125015be by Milian Wolff.
Committed on 14/05/2012 at 21:16.
Pushed by mwolff into branch '4.3'.

Fix begin-lookup for auto-type deduction in range-based for loops.

First up, ensure we pick the proper list type by introducing a
virtual ContextBuilder::handleRangeBasedFor that is then overwritten
in the DeclarationBuilder. This way we can ensure that lastType()
actually returns the type we want.

Then, when we don't find a viable begin function in the current
namespace via ADL, fallback to ::std::begin (in accordance to the
spec) and repeat.

M  +7    -2    languages/cpp/cppduchain/contextbuilder.cpp
M  +1    -0    languages/cpp/cppduchain/contextbuilder.h
M  +39   -8    languages/cpp/cppduchain/declarationbuilder.cpp
M  +1    -1    languages/cpp/cppduchain/declarationbuilder.h
M  +0    -1    languages/cpp/cppduchain/overloadresolutionhelper.cpp
M  +1    -0    languages/cpp/cppduchain/tests/test_duchain.h
M  +62   -0    languages/cpp/cppduchain/tests/test_duchain_cpp2011.cpp

http://commits.kde.org/kdevelop/25c9de709d85f6288ea2dcc68ee2ef15125015be

-- 
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