[cfe-dev] clang_isCursorDefinition and template functions
iestyn at valvesoftware.com
Fri Nov 2 14:06:34 PDT 2012
clang_isCursorDefinition returns false for definitions of non-specialized function templates, as well as for definitions of partially-specialized classes. In contrast, CXIdxDeclInfo::isDefinition is true in these cases.
Even if compilation needs to be deferred in these cases (until the set of full specializations is known), should these cursors not still be counted as definitions? (for the sake of identifying the 'defining cursor')
Again, posting here to double-check before submitting the above as a bug...
More information about the cfe-dev