Add // NOLINTNEXTLINE to correct place

This commit is contained in:
jeremy 2022-11-30 11:43:16 +01:00
parent 9c0c0a2d1c
commit a10c254caa
2 changed files with 4 additions and 2 deletions

View File

@ -88,7 +88,8 @@ ValidFramesModifier::Iterator ValidFramesModifier::end() {
ValidFramesConsumer::ValidFramesConsumer(MultiFrame &multiframe) : multiframe_(multiframe) {}
ValidFramesConsumer::~ValidFramesConsumer() {
// NOLINTNEXTLINE (bugprone-exception-escape)
ValidFramesConsumer::~ValidFramesConsumer() noexcept {
// TODO Possible optimisation: only DefragmentValidFrames if one frame has been invalidated? Only if does not
// cost too much to store it
multiframe_.DefragmentValidFrames();

View File

@ -79,6 +79,7 @@ class MultiFrame {
inline utils::MemoryResource *GetMemoryResource() { return frames_[0].GetMemoryResource(); }
private:
// NOLINTNEXTLINE (bugprone-exception-escape)
void DefragmentValidFrames() noexcept;
FrameWithValidity default_frame_;
@ -185,7 +186,7 @@ class ValidFramesConsumer {
public:
explicit ValidFramesConsumer(MultiFrame &multiframe);
~ValidFramesConsumer();
~ValidFramesConsumer() noexcept;
ValidFramesConsumer(const ValidFramesConsumer &other) = delete; // copy constructor
ValidFramesConsumer(ValidFramesConsumer &&other) noexcept = delete; // move constructor
ValidFramesConsumer &operator=(const ValidFramesConsumer &other) = delete; // copy assignment