Skip to content

Commit 4159e41

Browse files
committed
[lldb][test] TestDataFormatterLibcxxInvalidVectorSimulator.py: fix inline namespace warnings
Fixes: ``` /Users/ec2-user/jenkins/workspace/apple-llvm-project-pr-macos/branch-swift/release/6.2/llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/invalid-vector/main.cpp:5:11: warning: inline namespace reopened as a non-inline namespace [-Winline-namespace-reopened-noninline] 5 | namespace __1 { | ^ ``` Drive-by: compile test as C++20 (in an attempt to fix another buildbot issue) (cherry picked from commit dfed3d2)
1 parent 8fe0fd8 commit 4159e41

File tree

2 files changed

+4
-4
lines changed
  • lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/invalid-vector

2 files changed

+4
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
CXX_SOURCES := main.cpp
2-
override CXXFLAGS_EXTRAS += -std=c++14
2+
override CXXFLAGS_EXTRAS += -std=c++20
33
include Makefile.rules

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/invalid-vector/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
#include <libcxx-simulators-common/compressed_pair.h>
33

44
namespace std {
5-
namespace __1 {
5+
inline namespace __1 {
66
template <typename T> struct vector {
77
T *__begin_;
88
T *__end_;
99
_LLDB_COMPRESSED_PAIR(T *, __cap_ = nullptr, void *, __alloc_);
1010
};
1111
} // namespace __1
1212

13-
namespace __2 {
13+
inline namespace __2 {
1414
template <typename T> struct vector {};
1515
} // namespace __2
1616

17-
namespace __3 {
17+
inline namespace __3 {
1818
template <typename T> struct vector {
1919
T *__begin_;
2020
T *__end_;

0 commit comments

Comments
 (0)