[libc++] Make the naming of private member variables consistent and enforce it through readability-identifier-naming
Reviewed By: ldionne, #libc
Spies: aheejin, sstefan1, libcxx-commits
Differential Revision: https://reviews.llvm.org/D129386
NOKEYCHECK=True
GitOrigin-RevId: 84fc2c3cd62ab5be51d65f818854bb031b74c0f2
diff --git a/include/exception b/include/exception
index 04057c3..98b355f 100644
--- a/include/exception
+++ b/include/exception
@@ -116,11 +116,11 @@
class exception { // base of all library exceptions
public:
- exception() _NOEXCEPT : _Data() {}
+ exception() _NOEXCEPT : __data_() {}
- explicit exception(char const* __message) _NOEXCEPT : _Data() {
- _Data._What = __message;
- _Data._DoFree = true;
+ explicit exception(char const* __message) _NOEXCEPT : __data_() {
+ __data_._What = __message;
+ __data_._DoFree = true;
}
exception(exception const&) _NOEXCEPT {}
@@ -129,10 +129,10 @@
virtual ~exception() _NOEXCEPT {}
- virtual char const* what() const _NOEXCEPT { return _Data._What ? _Data._What : "Unknown exception"; }
+ virtual char const* what() const _NOEXCEPT { return __data_._What ? __data_._What : "Unknown exception"; }
private:
- __std_exception_data _Data;
+ __std_exception_data __data_;
};
class bad_exception : public exception {