llvm-project/clang/unittests/Tooling
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] Update target_link_libraries() and LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 12:40:37 +00:00
CommentHandlerTest.cpp [C++11] Use 'nullptr'. Unittests edition. 2014-06-08 08:38:12 +00:00
CompilationDatabaseTest.cpp [C++11] Use 'nullptr'. Unittests edition. 2014-06-08 08:38:12 +00:00
Makefile [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
RecursiveASTVisitorTest.cpp RAV: visit copy expressions of captured variables in blocks (ObjC++11) 2014-06-26 01:42:24 +00:00
RefactoringCallbacksTest.cpp Replace OwningPtr with std::unique_ptr. 2014-03-07 20:03:18 +00:00
RefactoringTest.cpp Replace llvm::error_code with std::error_code. 2014-06-12 14:02:15 +00:00
ReplacementsYamlTest.cpp Do not quote YAML plain string myself. Let YAMLIO do that. 2013-09-11 04:00:35 +00:00
RewriterTest.cpp Adds a method overwriteChangedFiles to the Rewriter. This is implemented by 2012-05-22 17:01:35 +00:00
RewriterTestContext.h Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
TestVisitor.h Make test from r211758 portable 2014-06-26 02:07:06 +00:00
ToolingTest.cpp [C++11] Use 'nullptr'. Unittests edition. 2014-06-08 08:38:12 +00:00