llvm-project/clang/lib/Basic
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
..
Attributes.cpp Post-commit review coding style change: renaming HasAttribute to hasAttribute. No functional changes. 2014-03-31 15:26:40 +00:00
Builtins.cpp [C++11] Use 'nullptr'. 2014-05-08 06:41:40 +00:00
CMakeLists.txt Reapply r207477 and r207479 without cyclic dependency 2014-04-29 16:25:26 +00:00
CharInfo.cpp CharInfo: Add missing "using namespace clang::charinfo" in .cpp file. 2013-02-08 22:37:49 +00:00
Diagnostic.cpp DiagnosticIDs: use diagnostic severities to simplify extension handling 2014-06-22 21:58:33 +00:00
DiagnosticIDs.cpp DiagnosticIDs: use diagnostic severities to simplify extension handling 2014-06-22 21:58:33 +00:00
FileManager.cpp Avoid invalidating successfully loaded module files 2014-06-20 00:24:56 +00:00
FileSystemStatCache.cpp Replace llvm::error_code with std::error_code. 2014-06-12 14:02:15 +00:00
IdentifierTable.cpp Decouple ExprCXX.h and DeclCXX.h and clean up includes a bit. 2014-05-10 16:31:55 +00:00
LangOptions.cpp Add a *San + modules FIXME. 2013-02-07 01:09:29 +00:00
Makefile Use tabs instead of spaces. 2012-03-02 16:06:37 +00:00
Module.cpp [C++11] Use 'nullptr'. 2014-05-08 06:41:40 +00:00
ObjCRuntime.cpp Add a define for the ObjFW runtime ABI version. 2013-09-16 16:31:49 +00:00
OpenMPKinds.cpp [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
OperatorPrecedence.cpp Replace C++0x in a comment with C++11 2013-07-14 17:04:56 +00:00
SourceLocation.cpp Only mark dump() function definitions 'used' in debug builds 2014-01-04 13:47:14 +00:00
SourceManager.cpp Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
TargetInfo.cpp Implement predefined stdint macros 2014-06-25 01:31:33 +00:00
Targets.cpp ARM: Correctly identify cortex-m4 as v7em. 2014-06-26 17:24:16 +00:00
TokenKinds.cpp [C++11] Use 'nullptr'. 2014-05-08 06:41:40 +00:00
Version.cpp Revert "Revert "Devise a package-private means to determine the LLVM version string"" 2014-06-06 10:36:22 +00:00
VersionTuple.cpp Include llvm::Optional in clang/Basic/LLVM.h 2013-02-20 22:23:23 +00:00
VirtualFileSystem.cpp Add vfs::recursive_directory_iterator 2014-06-25 20:25:40 +00:00
Warnings.cpp DiagnosticIDs: use diagnostic severities to simplify extension handling 2014-06-22 21:58:33 +00:00