Enable build/header_guard for cpplint (#1936)

This commit is contained in:
Ken Matsui 2024-01-31 03:05:20 -08:00 committed by GitHub
parent 5f273d8744
commit 0d178877f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 3 deletions

View File

@ -26,7 +26,6 @@ filter=-legal/copyright
filter=-build/storage_class
filter=-build/namespaces
filter=-build/include
filter=-build/header_guard
filter=-build/include_what_you_use
filter=-runtime/explicit
filter=-runtime/string

View File

@ -1,5 +1,7 @@
#pragma once
#define MAJOR @DROGON_MAJOR_VERSION@
#define MINOR @DROGON_MINOR_VERSION@
#define PATCH @DROGON_PATCH_VERSION@
#define DROGON_VERSION "@DROGON_VERSION_STRING@"
#define DROGON_VERSION_SHA1 "@GIT_SHA1@"
#define DROGON_VERSION_SHA1 "@GIT_SHA1@"

View File

@ -11,6 +11,7 @@
* Drogon
*
*/
#pragma once
#include <chrono>
#include <functional>

View File

@ -11,6 +11,7 @@
* Drogon
*
*/
#pragma once
#include <string>
#include <vector>

View File

@ -11,6 +11,8 @@
* Drogon
*
*/
#pragma once
#include <trantor/utils/NonCopyable.h>
#include <trantor/net/EventLoop.h>
#include <chrono>

View File

@ -3,7 +3,7 @@
* mman-win32
*/
#ifndef _SYS_MMAN_H_
#ifndef _SYS_MMAN_H_ // NOLINT(build/header_guard)
#define _SYS_MMAN_H_
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.