]> granicus.if.org Git - clang/commit
Fix for clang_Cursor_getSpellingNameRange()
authorKevin Funk <kfunk@kde.org>
Tue, 20 Dec 2016 09:56:56 +0000 (09:56 +0000)
committerKevin Funk <kfunk@kde.org>
Tue, 20 Dec 2016 09:56:56 +0000 (09:56 +0000)
commitadd07b73fd0f5cd4110bf6c944112df9350380d5
tree0ec11e8e876f4a0c3e756f41a8f13e4ed0ca49eb
parentb49f706eef3ac5cdadd86aaac5a50335cf8d895e
Fix for clang_Cursor_getSpellingNameRange()

Summary:
Fixes spelling name ranges for user-defined string literal operators.

Example:
  constexpr int operator""_toint(unsigned long long val)
  { return int(val); }

Before this patch the spelling name range on consisted of 'operator'.

After this patch: 'operator""_toint'.

Related to http://reviews.llvm.org/D5041, which fixes the function for
other cursor kinds.

Reviewers: akyrtzi, craigt, skalinichev, klimek, milianw, bkramer

Subscribers: cfe-commits

Tags: #clang-c

Differential Revision: https://reviews.llvm.org/D18462

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290172 91177308-0d34-0410-b5e6-96231b3b80d8
test/Index/get-cursor.cpp
tools/libclang/CIndex.cpp