Skip to content
  • Nikolai Kosjar's avatar
    Clang: Fix dot to arrow correction · 17c1325c
    Nikolai Kosjar authored
    
    
    The position of the dot character was determined on an outdated
    translation unit.
    
    We queried the translation unit for the source location of the dot
    character, but apparently clang_codeCompleteAt() does not update the
    source locations for the translation unit. And we do not want to reparse
    since this is expensive. Thus, determine the byte position manually by
    scanning over the document until the right line/column is reached.
    
    Change-Id: I25e256bb81a83bb71c7e46a0fb3e927bf4031b16
    Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@qt.io>
    Reviewed-by: default avatarEike Ziller <eike.ziller@qt.io>
    17c1325c