llvm-project/clang/lib/Index
Sam McCall cc026ebf32 [Index] Return SourceLocation to consumers, not FileID/Offset pair.
Summary:
The FileID/Offset conversion is lossy. The code takes the fileLoc, which loses
e.g. the spelling location in some macro cases.
Instead, pass the original SourceLocation which preserves all information, and
update consumers to match current behavior.

This allows us to fix two bugs in clangd that need the spelling location.

Reviewers: akyrtzi, arphaman

Subscribers: ilya-biryukov, ioeric, cfe-commits

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

llvm-svn: 329570
2018-04-09 14:12:51 +00:00
..
CMakeLists.txt [index] CMake: add missing reference to clangSerialization library. 2017-01-30 06:48:27 +00:00
CodegenNameGenerator.cpp [index] Generate class & metaclass manglings for objc 2017-09-22 16:58:57 +00:00
CommentToXML.cpp Print enum constant values using the original source formatting 2017-08-17 13:41:55 +00:00
IndexBody.cpp [index] __builtin_offset's field reference is located at the end location 2017-11-07 18:25:36 +00:00
IndexDecl.cpp [index] Fix crash when indexing a C++14 PCH/module related to TemplateTemplateParmDecls of alias templates 2018-01-26 19:26:12 +00:00
IndexSymbol.cpp [Index] Reduce size of SymbolInfo struct. 2017-12-23 19:31:24 +00:00
IndexTypeSourceInfo.cpp [index] Update indexing to handle CXXDeductionGuideDecls properly 2017-08-15 17:20:37 +00:00
IndexingAction.cpp [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
IndexingContext.cpp [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
IndexingContext.h [index] The relation between the declarations in template specializations 2017-04-24 14:04:58 +00:00
SimpleFormatContext.h
USRGeneration.cpp [Index] fix USR generation for namespace{extern{X}} 2018-02-02 14:13:37 +00:00