llvm-project/clang/lib/Index
David Blaikie 66cc07b4f7 Remove 'const' from MemoryBuffers used through the SourceManager
This removes a const_cast added in r211884 that occurred due to an
inconsistency in how MemoryBuffers are handled between some parts of
clang and LLVM.

MemoryBuffers are immutable and the general convention in the LLVM
project is to omit const from immutable types as it's simply
redundant/verbose (see llvm::Type, for example). While this change
doesn't remove "const" from /every/ MemoryBuffer, it at least makes this
chain of ownership/usage consistent.

llvm-svn: 211915
2014-06-27 17:40:03 +00:00
..
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
CommentToXML.cpp [C++11] Use 'nullptr'. 2014-05-26 06:21:51 +00:00
Makefile Rename libIDE to libIndex. 2013-08-17 00:40:41 +00:00
SimpleFormatContext.h Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
USRGeneration.cpp Avoid dubious IdentifierInfo::getNameStart() uses 2014-06-07 23:30:53 +00:00