templates & function menu; was: code completion
templates & function menu; was: code completion
- Subject: templates & function menu; was: code completion
- From: Markian Hlynka <email@hidden>
- Date: Tue, 6 Jun 2006 14:51:14 -0600
On Jun 1, 2006, at 17:49, Chris Espinosa wrote:
On Jun 1, 2006, at 3:03 PM, Markian Hlynka wrote:
Is Xcode able to do code completion on an instantiated template? ie
#include "Range_Table.h"
Range_Table<int> evalRankTable;
evalRankTable.[hit escape; no completions found]
The Xcode indexer doesn't parse C++ templates, so no indexer-based
functions (code completion, class model, class diagram, Find
Symbols, Project Symbols smargroup) will deal intelligently with
templates.
ok, I suspected as much, though I agree with Dix
I also note that the function menu gets completely fubared when
parsing templates. I have a very simple template:
template <class T>
class Range_Table
{
typedef std::pair<T,T> RangePairType;
private:
std::vector<RangePairType> bounds;
std::vector< std::pair<RangePairType, RangePairType> >
equivalence;
T lowbounds; //the bounds can be any type that can do
T highbounds; //< and ==.
unsigned int key; //The key returns from 0 on upward.
void insert(const std::pair<T,T> & insertee);
public:
Range_Table(std::string filename); //constructor
unsigned int get_index(const T& key);
void add(const T& low, const T& hi);
void set_equivalence(const std::pair<T,T> & a,
const std::pair<T,T> & b);
void dump(); //for testing
};
For some reason, after the set_equivalence prototype, the function
menu ceases to function correctly. Even more odd is the menu item
that follows set_equivalence is the typedef at the top! After that,
it just gets weird. It doesn't seem to have even an inkling of how to
deal with template code. For example, the constructor begins:
template <class T>
Range_Table<T>::Range_Table(std::string filename):
equivalence(0)
And the function menu has the equivalence() in it, which takes me to
the initializer: equivalence(0)
!!
Should I file a bug report, or a feature request, or what?
Thanks,
Markian
----
I need more signatures for my random signature selection! Submissions
should be sent to:
Markian Hlynka
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden