Code quality: Fix header guards consistency

Adds `header_guards.sh` bash script, used in CI to validate future
changes. Can be run locally to fix invalid header guards.
This commit is contained in:
Rémi Verschelde
2022-07-23 23:41:51 +02:00
parent 3084a48ace
commit 90019676b0
491 changed files with 1009 additions and 863 deletions

View File

@@ -516,4 +516,4 @@ DirAccessUnix::~DirAccessUnix() {
list_dir_end();
}
#endif //posix_enabled
#endif // UNIX_ENABLED || LIBC_FILEIO_ENABLED

View File

@@ -90,5 +90,6 @@ public:
~DirAccessUnix();
};
#endif //UNIX ENABLED
#endif
#endif // UNIX_ENABLED || LIBC_FILEIO_ENABLED
#endif // DIR_ACCESS_UNIX_H

View File

@@ -339,4 +339,4 @@ FileAccessUnix::~FileAccessUnix() {
_close();
}
#endif
#endif // UNIX_ENABLED || LIBC_FILEIO_ENABLED

View File

@@ -86,5 +86,6 @@ public:
virtual ~FileAccessUnix();
};
#endif
#endif
#endif // UNIX_ENABLED || LIBC_FILEIO_ENABLED
#endif // FILE_ACCESS_UNIX_H

View File

@@ -50,4 +50,5 @@ public:
};
#endif
#endif // IP_UNIX_H

View File

@@ -28,8 +28,8 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/
#ifndef NET_SOCKET_UNIX_H
#define NET_SOCKET_UNIX_H
#ifndef NET_SOCKET_POSIX_H
#define NET_SOCKET_POSIX_H
#include "core/io/net_socket.h"
@@ -104,4 +104,4 @@ public:
~NetSocketPosix();
};
#endif
#endif // NET_SOCKET_POSIX_H

View File

@@ -98,6 +98,6 @@ public:
virtual ~UnixTerminalLogger();
};
#endif
#endif // UNIX_ENABLED
#endif
#endif // OS_UNIX_H

View File

@@ -43,6 +43,6 @@ public:
virtual ~SyslogLogger();
};
#endif
#endif // UNIX_ENABLED
#endif
#endif // SYSLOG_LOGGER_H

View File

@@ -35,4 +35,4 @@
void init_thread_posix();
#endif
#endif
#endif // THREAD_POSIX_H