Fix header pragma once (#12450)

This commit is contained in:
江战
2022-08-18 10:31:52 +08:00
committed by GitHub
parent c28ee043ef
commit 9d5ea47fc4
23 changed files with 29 additions and 11 deletions
-7
View File
@@ -1778,7 +1778,6 @@ cocos_source_files(
cocos/core/Any.h
cocos/core/ArrayBuffer.h
cocos/core/CoreModuleHeader.h
cocos/core/DataView.h
cocos/core/DataView.cpp
# cocos/core/Director.cpp
@@ -1945,12 +1944,6 @@ cocos_source_files(
cocos/core/event/EventTypesToJS.cpp
# cocos/core/event/Event.cpp
# cocos/core/event/Event.h
cocos/core/event/EventModuleHeader.h
cocos/core/event/EventTarget.cpp
cocos/core/event/EventTarget.h
cocos/core/event/EventTargetFactory.cpp
cocos/core/event/EventTargetFactory.h
# cocos/core/scene-graph/Find.cpp
# cocos/core/scene-graph/Find.h
cocos/core/scene-graph/Layers.h
+1
View File
@@ -22,6 +22,7 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#pragma once
#include <string>
#include "CocosApplication.h"
+1
View File
@@ -23,6 +23,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#pragma once
#include "base/std/container/string.h"
namespace cc {
+1 -3
View File
@@ -25,8 +25,7 @@
THE SOFTWARE.
****************************************************************************/
#ifndef __EXPORT_COMMON__
#define __EXPORT_COMMON__
#pragma once
#if defined(SHP)
#include <FBaseConfig.h>
@@ -51,4 +50,3 @@
#endif
#endif
#endif // end of __EXPORT_COMMON__
+2
View File
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#if CC_USE_JOB_SYSTEM_TASKFLOW
#include "job-system-taskflow/TFJobGraph.h"
#include "job-system-taskflow/TFJobSystem.h"
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#include <cerrno>
#include <cstddef>
#include <cstring>
+2
View File
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
// public headers for user application
#include "application/ApplicationManager.h"
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
//#include "core/scene-graph/ComponentScheduler.h"
//#include "core/scene-graph/Find.h"
#include "core/scene-graph/Layers.h"
+2
View File
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
+2 -1
View File
@@ -23,9 +23,10 @@
THE SOFTWARE.
****************************************************************************/
#import "cocos/bindings/event/EventDispatcher.h"
#pragma once
#import "cocos/bindings/event/EventDispatcher.h"
extern int translateKeycode(int);
extern void updateModifierKeyState(int keyCodeInWeb);
extern cc::KeyboardEvent::Action getModifierKeyAction(int keyCodeInWeb);
+2
View File
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#import <AppKit/NSView.h>
#import <MetalKit/MetalKit.h>
@@ -23,6 +23,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#import <AppKit/NSViewController.h>
#import <MetalKit/MetalKit.h>
@@ -22,6 +22,8 @@
THE SOFTWARE.
****************************************************************************/
#pragma once
#include <algorithm>
#include <iterator>
#include <memory>
@@ -1,3 +1,5 @@
#pragma once
#include "bindings/jswrapper/SeApi.h"
#include "bindings/manual/jsb_conversions.h"
#include "bindings/manual/jsb_global.h"
+2
View File
@@ -26,6 +26,8 @@ you.
THE SOFTWARE.
****************************************************************************/
#pragma once
#import "platform/ios/AppDelegateBridge.h"
#import <UIKit/UIKit.h>
+2
View File
@@ -26,6 +26,8 @@ you.
THE SOFTWARE.
****************************************************************************/
#pragma once
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
+2
View File
@@ -24,6 +24,8 @@ you.
THE SOFTWARE.
****************************************************************************/
#pragma once
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN