[PATCH] D37905: [libclang, bindings]: add spelling location

Masud Rahman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 15 08:13:00 PDT 2017


frutiger created this revision.

o) Enhance 'CursorLocation' with four additional properties that can

  retrieve spelling location information.

o) Update the implementation to use 'clang_getExpansionLocation'

  instead of the deprecated 'clang_getInstantiationLocation', which
  has been present since 2011.

o) Update the implementation of 'clang_getSpellingLocation' to actually

  obtain spelling location instead of file location.


https://reviews.llvm.org/D37905

Files:
  bindings/python/clang/cindex.py
  bindings/python/tests/cindex/test_location.py
  tools/libclang/CXSourceLocation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37905.115409.patch
Type: text/x-patch
Size: 6023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170915/6f40f1e3/attachment.bin>


More information about the cfe-commits mailing list