[PATCH] Fix source range of destructor name

Olivier Goffart ogoffart at kde.org
Wed Jan 15 13:25:29 PST 2014


Hi,

This fixes http://llvm.org/bugs/show_bug.cgi?id=15125
The problem is that destructor->getNameInfo().getSourceRange() only contains 
the '~' and not the class name after it.

This is why for example the destructor name is not highlighted in my code 
browser, only the '~' has a tooltip.
http://code.woboq.org/userspace/llvm/tools/clang/include/clang/AST/DeclarationName.h.html#_ZN5clang20DeclarationNameTableD1Ev

-- 
Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-source-range-of-the-destructor-name.patch
Type: text/x-patch
Size: 2935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140115/3e79bcde/attachment.bin>


More information about the cfe-commits mailing list