llvm-project/clang/lib
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
..
ARCMigrate Replace llvm::error_code with std::error_code. 2014-06-12 14:02:15 +00:00
AST [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
ASTMatchers Add hasLocalStorage/hasGlobalStorage matchers. 2014-06-05 18:22:14 +00:00
Analysis Fix a crash in Retain Count checker error reporting 2014-06-13 23:47:38 +00:00
Basic Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
CodeGen Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
Driver clang-cl: Map /EHs- to -fno-exceptions 2014-06-27 17:02:02 +00:00
Edit [C++11] Use 'nullptr'. 2014-05-09 08:15:10 +00:00
Format clang-format: Understand that breaking before lambdas is fine. 2014-06-24 09:15:49 +00:00
Frontend Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
FrontendTool [C++11] Use 'nullptr'. 2014-05-26 06:21:51 +00:00
Headers Headers: be a bit more careful about inline asm 2014-06-25 16:48:40 +00:00
Index Remove 'const' from MemoryBuffers used through the SourceManager 2014-06-27 17:40:03 +00:00
Lex Convert StringLiteralParser constructor to use ArrayRef instead of a pointer and count. 2014-06-26 04:58:39 +00:00
Parse [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
Rewrite Replace llvm::error_code with std::error_code. 2014-06-12 14:02:15 +00:00
Sema [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
Serialization [OPENMP] Parsing and sema analysis for 'copyprivate' clause. 2014-06-27 10:37:06 +00:00
StaticAnalyzer Do not inline methods of C++ containers (coming from headers). 2014-06-27 01:03:05 +00:00
Tooling Include system_error directly. 2014-06-12 17:19:42 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00