aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-09 15:52:25 +0000
committerJonas Hahnfeld <hahnjo@hahnjo.de>2017-11-09 15:52:25 +0000
commitaeb40adabf18d517fa27085d3e39cb2b93eb7648 (patch)
treee4c1bb4635181b54f8b07352cccdc8678aaa70f2 /clang/unittests/Basic/VirtualFileSystemTest.cpp
parent18ff303bed72782f05cfc9b87ed38d788edbdf07 (diff)
downloadllvm-aeb40adabf18d517fa27085d3e39cb2b93eb7648.zip
llvm-aeb40adabf18d517fa27085d3e39cb2b93eb7648.tar.gz
llvm-aeb40adabf18d517fa27085d3e39cb2b93eb7648.tar.bz2
Remove const from variables with dynamic memory
Allocated memory is typically not 'const' if it needs to be freed. This patch removes around 50 wrong const attributes, modifies the corresponding functions and finally gets rid of some const_casts. These have especially been strange for __kmp_str_fname_free() that added a 'const' to call __kmp_str_free() which removed it again. Two minor cleanups that I performed in this process: * __kmp_tool_libraries now lives in kmp_settings.cpp as it is used nowhere else. * __kmp_msg_empty was removed as it was never used and Clang now complained that it was assigned a string literal that is 'const char *'. Differential Revision: https://reviews.llvm.org/D39755 llvm-svn: 317797
Diffstat (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions