diff options
author | 2022-05-21 17:16:50 +0200 | |
---|---|---|
committer | 2022-05-22 01:16:50 +1000 | |
commit | 324f9d44d5c4293645e7bb8f42e7d95d5ac1e604 (patch) | |
tree | 1ad2d66458486f184e11536e247309eb6c0161fb /src/lib/netlist/plib/ppmf.cpp | |
parent | b33946d980772bf8e973b3816684f313a5b4e9ea (diff) |
netlist: More c++, less macros, added support for cspell (#9794)
- More c++, less macros
* Significantly reduced the use of unused_var and replaced it with
[[maybe_unused]]
* use enum class in ppmf.h
- Changes to testing code in ptest.h
* Catch exceptions in more places
* The verbosity of the output can now be controlled
* Display of test stats totals
- added support for cspell
- fixed various typos
- fixed SUBTARGET=nl build
- fixed more file permissions
- srcclean and add fix_permissions target to netlist makefile
Diffstat (limited to 'src/lib/netlist/plib/ppmf.cpp')
-rw-r--r-- | src/lib/netlist/plib/ppmf.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/netlist/plib/ppmf.cpp b/src/lib/netlist/plib/ppmf.cpp index 8100b94ade0..05493f98d2f 100644 --- a/src/lib/netlist/plib/ppmf.cpp +++ b/src/lib/netlist/plib/ppmf.cpp @@ -15,7 +15,7 @@ namespace plib { - void mfp_raw<PPMF_TYPE_INTERNAL_ITANIUM>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const + void mfp_raw<ppmf_type::INTERNAL_ITANIUM>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const { // apply the "this" delta to the object first // NOLINTNEXTLINE(clang-analyzer-core.UndefinedBinaryOperatorResult,cppcoreguidelines-pro-type-reinterpret-cast) @@ -42,7 +42,7 @@ namespace plib { object = o_p_delta; } - void mfp_raw<PPMF_TYPE_INTERNAL_ARM>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const + void mfp_raw<ppmf_type::INTERNAL_ARM>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const { // NOLINTNEXTLINE(cppcoreguidelines-pro-type-reinterpret-cast) object = reinterpret_cast<mfp_generic_class *>(reinterpret_cast<std::uint8_t *>(object) + (m_this_delta >> 1)); @@ -64,9 +64,9 @@ namespace plib { } } - struct unknown_base_equiv_novtdisp { mfp_raw<PPMF_TYPE_INTERNAL_MSC>::generic_function fptr; int thisdisp, vptrdisp; }; + struct unknown_base_equiv_novtdisp { mfp_raw<ppmf_type::INTERNAL_MSC>::generic_function fptr; int thisdisp, vptrdisp; }; - void mfp_raw<PPMF_TYPE_INTERNAL_MSC>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const + void mfp_raw<ppmf_type::INTERNAL_MSC>::convert_to_generic(generic_function &func, mfp_generic_class *&object) const { //printf("%lx, %lx, %lx, %lx %lx\n", m_function, m_this_delta, m_vptr_offs, m_vt_index, m_size); |