Remove all usages of "const" node pointer typedefs in the assoc containers.
The "const" pointer typedefs such as "__node_const_pointer" and "__node_base_const_pointer" are identical to their non-const pointer types. This patch changes all usages of "const" pointer type names to their respective non-const typedef. Since "fancy pointers to const" cannot be converted back to a non-const pointer type according to the allocator requirements it is important that we never actually use "const" pointers. Furthermore since "__node_const_pointer" and "__node_pointer" already name the same type, it's very confusing to use both names. Especially when defining const/non-const overloads for member functions. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@261419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -515,7 +515,7 @@ class Configuration(object):
|
||||
if enable_warnings:
|
||||
self.cxx.compile_flags += [
|
||||
'-D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER',
|
||||
'-Wall', '-Werror'
|
||||
'-Wall', '-Wextra', '-Werror'
|
||||
]
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-attributes')
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-pessimizing-move')
|
||||
@@ -525,6 +525,8 @@ class Configuration(object):
|
||||
# compiles clean with them.
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-unused-local-typedef')
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-unused-variable')
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-unused-parameter')
|
||||
self.cxx.addWarningFlagIfSupported('-Wno-sign-compare')
|
||||
std = self.get_lit_conf('std', None)
|
||||
if std in ['c++98', 'c++03']:
|
||||
# The '#define static_assert' provided by libc++ in C++03 mode
|
||||
|
||||
Reference in New Issue
Block a user