[cfe-commits] r104075 - in /cfe/trunk: include/clang-c/Index.h tools/libclang/CIndex.cpp tools/libclang/libclang.darwin.exports tools/libclang/libclang.exports

Douglas Gregor dgregor at apple.com
Wed May 19 11:36:34 PDT 2010


On May 19, 2010, at 11:35 AM, Ted Kremenek wrote:

> 
> On May 18, 2010, at 3:41 PM, Douglas Gregor wrote:
> 
>> 
>> On May 18, 2010, at 3:32 PM, Ted Kremenek wrote:
>> 
>>> Author: kremenek
>>> Date: Tue May 18 17:32:15 2010
>>> New Revision: 104075
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=104075&view=rev
>>> Log:
>>> Add function 'clang_isTagDeclDefinition()' to allow clients of libclang to distinguish between
>>> forward declarations and definitions of structs/classes/enums.
>> 
>> Could/should we generalize this to clang_isDeclarationADefinition(), making it work for any entity that has definitions? (Variables, Functions, Tags, etc.)
>> 
>> 	- Doug
> 
> It turns out we already have clang_isCursorDefinition(), so this function isn't needed at all.

Even better!

	- Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100519/98e0e024/attachment.html>


More information about the cfe-commits mailing list