Skip to content

Commit

Permalink
Adding missing include guards to header files identified by LGTM.
Browse files Browse the repository at this point in the history
This addresses the issue godotengine#37143

(cherry picked from commit 2ecf928)
  • Loading branch information
Rajat Goswami authored and akien-mga committed Mar 25, 2020
1 parent bdde501 commit 19e71f9
Show file tree
Hide file tree
Showing 50 changed files with 255 additions and 4 deletions.
10 changes: 7 additions & 3 deletions drivers/alsa/audio_driver_alsa.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#include "servers/audio_server.h"

#ifdef ALSA_ENABLED

#ifndef AUDIO_DRIVER_ALSA_H
#define AUDIO_DRIVER_ALSA_H

#include "core/os/mutex.h"
#include "core/os/thread.h"
#include "servers/audio_server.h"

#include <alsa/asoundlib.h>

Expand Down Expand Up @@ -87,4 +89,6 @@ class AudioDriverALSA : public AudioDriver {
~AudioDriverALSA();
};

#endif
#endif // AUDIO_DRIVER_ALSA_H

#endif // ALSA_ENABLED
5 changes: 5 additions & 0 deletions modules/assimp/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef ASSIMP_REGISTER_TYPES_H
#define ASSIMP_REGISTER_TYPES_H

void register_assimp_types();
void unregister_assimp_types();

#endif // ASSIMP_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/bmp/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef BMP_REGISTER_TYPES_H
#define BMP_REGISTER_TYPES_H

void register_bmp_types();
void unregister_bmp_types();

#endif // BMP_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/csg/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef CSG_REGISTER_TYPES_H
#define CSG_REGISTER_TYPES_H

void register_csg_types();
void unregister_csg_types();

#endif // CSG_REGISTER_TYPES_H
9 changes: 8 additions & 1 deletion modules/cvtt/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
/*************************************************************************/

#ifdef TOOLS_ENABLED

#ifndef CVTT_REGISTER_TYPES_H
#define CVTT_REGISTER_TYPES_H

void register_cvtt_types();
void unregister_cvtt_types();
#endif

#endif // CVTT_REGISTER_TYPES_H

#endif // TOOLS_ENABLED
5 changes: 5 additions & 0 deletions modules/dds/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef DDS_REGISTER_TYPES_H
#define DDS_REGISTER_TYPES_H

void register_dds_types();
void unregister_dds_types();

#endif // DDS_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/enet/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef ENET_REGISTER_TYPES_H
#define ENET_REGISTER_TYPES_H

void register_enet_types();
void unregister_enet_types();

#endif // ENET_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/etc/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef ETC_REGISTER_TYPES_H
#define ETC_REGISTER_TYPES_H

void register_etc_types();
void unregister_etc_types();

#endif // ETC_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/freetype/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef FREETYPE_REGISTER_TYPES_H
#define FREETYPE_REGISTER_TYPES_H

void register_freetype_types();
void unregister_freetype_types();

#endif // FREETYPE_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/arvr/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef ARVR_REGISTER_TYPES_H
#define ARVR_REGISTER_TYPES_H

void register_arvr_types();
void unregister_arvr_types();

#endif // ARVR_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/nativescript/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef NATIVESCRIPT_REGISTER_TYPES_H
#define NATIVESCRIPT_REGISTER_TYPES_H

void register_nativescript_types();
void unregister_nativescript_types();

#endif // NATIVESCRIPT_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/net/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef NET_REGISTER_TYPES_H
#define NET_REGISTER_TYPES_H

void register_net_types();
void unregister_net_types();

#endif // NET_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/pluginscript/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef PLUGINSCRIPT_REGISTER_TYPES_H
#define PLUGINSCRIPT_REGISTER_TYPES_H

void register_pluginscript_types();
void unregister_pluginscript_types();

#endif // PLUGINSCRIPT_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef GDNATIVE_REGISTER_TYPES_H
#define GDNATIVE_REGISTER_TYPES_H

void register_gdnative_types();
void unregister_gdnative_types();

#endif // GDNATIVE_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdnative/videodecoder/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef VIDEODECODER_REGISTER_TYPES_H
#define VIDEODECODER_REGISTER_TYPES_H

void register_videodecoder_types();
void unregister_videodecoder_types();

#endif // VIDEODECODER_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gdscript/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef GDSCRIPT_REGISTER_TYPES_H
#define GDSCRIPT_REGISTER_TYPES_H

void register_gdscript_types();
void unregister_gdscript_types();

#endif // GDSCRIPT_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/gridmap/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef GRIDMAP_REGISTER_TYPES_H
#define GRIDMAP_REGISTER_TYPES_H

void register_gridmap_types();
void unregister_gridmap_types();

#endif // GRIDMAP_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/hdr/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef HDR_REGISTER_TYPES_H
#define HDR_REGISTER_TYPES_H

void register_hdr_types();
void unregister_hdr_types();

#endif // HDR_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/jpg/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef JPG_REGISTER_TYPES_H
#define JPG_REGISTER_TYPES_H

void register_jpg_types();
void unregister_jpg_types();

#endif // JPG_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/jsonrpc/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef JSONRPC_REGISTER_TYPES_H
#define JSONRPC_REGISTER_TYPES_H

void register_jsonrpc_types();
void unregister_jsonrpc_types();

#endif // JSONRPC_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/mbedtls/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef MBEDTLS_REGISTER_TYPES_H
#define MBEDTLS_REGISTER_TYPES_H

void register_mbedtls_types();
void unregister_mbedtls_types();

#endif // MBEDTLS_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/mobile_vr/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef MOBILE_VR_REGISTER_TYPES_H
#define MOBILE_VR_REGISTER_TYPES_H

void register_mobile_vr_types();
void unregister_mobile_vr_types();

#endif // MOBILE_VR_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/ogg/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef OGG_REGISTER_TYPES_H
#define OGG_REGISTER_TYPES_H

void register_ogg_types();
void unregister_ogg_types();

#endif // OGG_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/opensimplex/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef OPENSIMPLEX_REGISTER_TYPES_H
#define OPENSIMPLEX_REGISTER_TYPES_H

void register_opensimplex_types();
void unregister_opensimplex_types();

#endif // OPENSIMPLEX_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/opus/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef OPUS_REGISTER_TYPES_H
#define OPUS_REGISTER_TYPES_H

void register_opus_types();
void unregister_opus_types();

#endif // OPUS_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/pvr/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef PVR_REGISTER_TYPES_H
#define PVR_REGISTER_TYPES_H

void register_pvr_types();
void unregister_pvr_types();

#endif // PVR_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/recast/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef RECAST_REGISTER_TYPES_H
#define RECAST_REGISTER_TYPES_H

void register_recast_types();
void unregister_recast_types();

#endif // RECAST_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/regex/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef REGEX_REGISTER_TYPES_H
#define REGEX_REGISTER_TYPES_H

void register_regex_types();
void unregister_regex_types();

#endif // REGEX_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/squish/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef SQUISH_REGISTER_TYPES_H
#define SQUISH_REGISTER_TYPES_H

void register_squish_types();
void unregister_squish_types();

#endif // SQUISH_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/stb_vorbis/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef STB_VORBIS_REGISTER_TYPES_H
#define STB_VORBIS_REGISTER_TYPES_H

void register_stb_vorbis_types();
void unregister_stb_vorbis_types();

#endif // STB_VORBIS_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/svg/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef SVG_REGISTER_TYPES_H
#define SVG_REGISTER_TYPES_H

void register_svg_types();
void unregister_svg_types();

#endif // SVG_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/tga/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef TGA_REGISTER_TYPES_H
#define TGA_REGISTER_TYPES_H

void register_tga_types();
void unregister_tga_types();

#endif // TGA_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/theora/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef THEORA_REGISTER_TYPES_H
#define THEORA_REGISTER_TYPES_H

void register_theora_types();
void unregister_theora_types();

#endif // THEORA_REGISTER_TYPES_H
5 changes: 5 additions & 0 deletions modules/tinyexr/register_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,10 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/

#ifndef TINYEXR_REGISTER_TYPES_H
#define TINYEXR_REGISTER_TYPES_H

void register_tinyexr_types();
void unregister_tinyexr_types();

#endif // TINYEXR_REGISTER_TYPES_H
Loading

0 comments on commit 19e71f9

Please sign in to comment.