Skip to content

Commit

Permalink
Attempt at suppressing multi-line comment warning due to backslashes …
Browse files Browse the repository at this point in the history
…in ASCII drawings.
  • Loading branch information
Dimi1010 committed Dec 17, 2024
1 parent f4190a4 commit 3cc0e7c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Packet++/header/SSLLayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
#include "SSLCommon.h"
#include "SSLHandshake.h"

#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcomment"
#endif
/// @file
/// This file as well as SSLCommon.h and SSLHandshake.h provide structures that represent SSL/TLS protocol.
/// Main features:
Expand Down Expand Up @@ -162,7 +166,9 @@
/// extension. All other extensions aren't parsed and are represented by instance of
/// pcpp::SSLExtension. Access to extensions is done through the handshake messages classes,
/// specifically pcpp::SSLClientHelloMessage and pcpp::SSLServerHelloMessage
///
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif

/// @namespace pcpp
/// @brief The main namespace for the PcapPlusPlus lib
Expand Down Expand Up @@ -255,6 +261,10 @@ namespace pcpp

}; // class SSLLayer

#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcomment"
#endif
// The graph below will break the code formatting, so it's disabled.
// clang-format off
/// @class SSLHandshakeLayer
Expand Down Expand Up @@ -300,6 +310,9 @@ namespace pcpp
/// (22) xxx | version,length | |
/// @endverbatim
// clang-format on
#ifdef __GNUC__
# pragma GCC diagnostic pop
#endif
class SSLHandshakeLayer : public SSLLayer
{
public:
Expand Down

0 comments on commit 3cc0e7c

Please sign in to comment.