mirror of
https://github.com/godotengine/godot.git
synced 2024-11-24 21:22:48 +00:00
Style: Format code with clang-format 6.0.1
This commit is contained in:
parent
ce53876a44
commit
7c9f7452f4
@ -1,6 +1,6 @@
|
|||||||
# Commented out parameters are those with the same value as base LLVM style
|
# Commented out parameters are those with the same value as base LLVM style
|
||||||
# We can uncomment them if we want to change their value, or enforce the
|
# We can uncomment them if we want to change their value, or enforce the
|
||||||
# chosen value in case the base style changes (last sync: Clang 5.0.0).
|
# chosen value in case the base style changes (last sync: Clang 6.0.1).
|
||||||
---
|
---
|
||||||
### General config, applies to all languages ###
|
### General config, applies to all languages ###
|
||||||
BasedOnStyle: LLVM
|
BasedOnStyle: LLVM
|
||||||
@ -32,6 +32,7 @@ AllowShortIfStatementsOnASingleLine: true
|
|||||||
# AfterObjCDeclaration: false
|
# AfterObjCDeclaration: false
|
||||||
# AfterStruct: false
|
# AfterStruct: false
|
||||||
# AfterUnion: false
|
# AfterUnion: false
|
||||||
|
# AfterExternBlock: false
|
||||||
# BeforeCatch: false
|
# BeforeCatch: false
|
||||||
# BeforeElse: false
|
# BeforeElse: false
|
||||||
# IndentBraces: false
|
# IndentBraces: false
|
||||||
@ -60,6 +61,7 @@ Cpp11BracedListStyle: false
|
|||||||
# - foreach
|
# - foreach
|
||||||
# - Q_FOREACH
|
# - Q_FOREACH
|
||||||
# - BOOST_FOREACH
|
# - BOOST_FOREACH
|
||||||
|
# IncludeBlocks: Preserve
|
||||||
IncludeCategories:
|
IncludeCategories:
|
||||||
- Regex: '".*"'
|
- Regex: '".*"'
|
||||||
Priority: 1
|
Priority: 1
|
||||||
@ -69,6 +71,7 @@ IncludeCategories:
|
|||||||
Priority: 3
|
Priority: 3
|
||||||
# IncludeIsMainRegex: '(Test)?$'
|
# IncludeIsMainRegex: '(Test)?$'
|
||||||
IndentCaseLabels: true
|
IndentCaseLabels: true
|
||||||
|
# IndentPPDirectives: None
|
||||||
IndentWidth: 4
|
IndentWidth: 4
|
||||||
# IndentWrappedFunctionNames: false
|
# IndentWrappedFunctionNames: false
|
||||||
# JavaScriptQuotes: Leave
|
# JavaScriptQuotes: Leave
|
||||||
@ -86,6 +89,10 @@ IndentWidth: 4
|
|||||||
# PenaltyExcessCharacter: 1000000
|
# PenaltyExcessCharacter: 1000000
|
||||||
# PenaltyReturnTypeOnItsOwnLine: 60
|
# PenaltyReturnTypeOnItsOwnLine: 60
|
||||||
# PointerAlignment: Right
|
# PointerAlignment: Right
|
||||||
|
# RawStringFormats:
|
||||||
|
# - Delimiter: pb
|
||||||
|
# Language: TextProto
|
||||||
|
# BasedOnStyle: google
|
||||||
# ReflowComments: true
|
# ReflowComments: true
|
||||||
# SortIncludes: true
|
# SortIncludes: true
|
||||||
# SortUsingDeclarations: true
|
# SortUsingDeclarations: true
|
||||||
|
@ -680,7 +680,6 @@ void RasterizerStorageGLES2::texture_set_force_redraw_if_visible(RID p_texture,
|
|||||||
ERR_FAIL_COND(!texture);
|
ERR_FAIL_COND(!texture);
|
||||||
|
|
||||||
texture->redraw_if_visible = p_enable;
|
texture->redraw_if_visible = p_enable;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerStorageGLES2::texture_set_detect_3d_callback(RID p_texture, VisualServer::TextureDetectCallback p_callback, void *p_userdata) {
|
void RasterizerStorageGLES2::texture_set_detect_3d_callback(RID p_texture, VisualServer::TextureDetectCallback p_callback, void *p_userdata) {
|
||||||
@ -1234,8 +1233,6 @@ Color RasterizerStorageGLES2::multimesh_instance_get_custom_data(RID p_multimesh
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerStorageGLES2::multimesh_set_as_bulk_array(RID p_multimesh, const PoolVector<float> &p_array) {
|
void RasterizerStorageGLES2::multimesh_set_as_bulk_array(RID p_multimesh, const PoolVector<float> &p_array) {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RasterizerStorageGLES2::multimesh_set_visible_instances(RID p_multimesh, int p_visible) {
|
void RasterizerStorageGLES2::multimesh_set_visible_instances(RID p_multimesh, int p_visible) {
|
||||||
|
@ -176,7 +176,6 @@ public:
|
|||||||
bool active;
|
bool active;
|
||||||
GLenum tex_id;
|
GLenum tex_id;
|
||||||
|
|
||||||
|
|
||||||
uint16_t stored_cube_sides;
|
uint16_t stored_cube_sides;
|
||||||
|
|
||||||
RenderTarget *render_target;
|
RenderTarget *render_target;
|
||||||
|
@ -1049,8 +1049,6 @@ void EditorInspectorSection::setup(const String &p_section, const String &p_labe
|
|||||||
vbox->hide();
|
vbox->hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// void editor_set_section_unfold(const String &p_section, bool p_unfolded);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -884,4 +884,4 @@ Dictionary mono_object_to_Dictionary(MonoObject *p_dict) {
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
} // namespace GDMonoMarshal
|
||||||
|
@ -42,7 +42,8 @@ void AudioDriverOpenSL::_buffer_callback(
|
|||||||
/* SLuint32 eventFlags,
|
/* SLuint32 eventFlags,
|
||||||
const void * pBuffer,
|
const void * pBuffer,
|
||||||
SLuint32 bufferSize,
|
SLuint32 bufferSize,
|
||||||
SLuint32 dataUsed*/) {
|
SLuint32 dataUsed*/
|
||||||
|
) {
|
||||||
|
|
||||||
bool mix = true;
|
bool mix = true;
|
||||||
|
|
||||||
|
@ -74,7 +74,8 @@ class AudioDriverOpenSL : public AudioDriver {
|
|||||||
/* SLuint32 eventFlags,
|
/* SLuint32 eventFlags,
|
||||||
const void * pBuffer,
|
const void * pBuffer,
|
||||||
SLuint32 bufferSize,
|
SLuint32 bufferSize,
|
||||||
SLuint32 dataUsed*/);
|
SLuint32 dataUsed*/
|
||||||
|
);
|
||||||
|
|
||||||
static void _buffer_callbacks(
|
static void _buffer_callbacks(
|
||||||
SLAndroidSimpleBufferQueueItf queueItf,
|
SLAndroidSimpleBufferQueueItf queueItf,
|
||||||
|
@ -66,7 +66,6 @@ abstract public class ConsumeTask {
|
|||||||
}
|
}
|
||||||
final String token = _token;
|
final String token = _token;
|
||||||
new AsyncTask<String, String, String>() {
|
new AsyncTask<String, String, String>() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String doInBackground(String... params) {
|
protected String doInBackground(String... params) {
|
||||||
try {
|
try {
|
||||||
@ -89,7 +88,6 @@ abstract public class ConsumeTask {
|
|||||||
error(param);
|
error(param);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,6 @@ public class PaymentsManager {
|
|||||||
|
|
||||||
public void requestPurchase(final String sku, String transactionId) {
|
public void requestPurchase(final String sku, String transactionId) {
|
||||||
new PurchaseTask(mService, Godot.getInstance()) {
|
new PurchaseTask(mService, Godot.getInstance()) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void error(String message) {
|
protected void error(String message) {
|
||||||
godotPaymentV3.callbackFail(message);
|
godotPaymentV3.callbackFail(message);
|
||||||
@ -128,7 +127,6 @@ public class PaymentsManager {
|
|||||||
protected void alreadyOwned() {
|
protected void alreadyOwned() {
|
||||||
godotPaymentV3.callbackAlreadyOwned(sku);
|
godotPaymentV3.callbackAlreadyOwned(sku);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.purchase(sku, transactionId);
|
.purchase(sku, transactionId);
|
||||||
}
|
}
|
||||||
@ -139,7 +137,6 @@ public class PaymentsManager {
|
|||||||
|
|
||||||
public void consumeUnconsumedPurchases() {
|
public void consumeUnconsumedPurchases() {
|
||||||
new ReleaseAllConsumablesTask(mService, activity) {
|
new ReleaseAllConsumablesTask(mService, activity) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success(String sku, String receipt, String signature, String token) {
|
protected void success(String sku, String receipt, String signature, String token) {
|
||||||
godotPaymentV3.callbackSuccessProductMassConsumed(receipt, signature, sku);
|
godotPaymentV3.callbackSuccessProductMassConsumed(receipt, signature, sku);
|
||||||
@ -208,14 +205,12 @@ public class PaymentsManager {
|
|||||||
|
|
||||||
public void processPurchaseResponse(int resultCode, Intent data) {
|
public void processPurchaseResponse(int resultCode, Intent data) {
|
||||||
new HandlePurchaseTask(activity) {
|
new HandlePurchaseTask(activity) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success(final String sku, final String signature, final String ticket) {
|
protected void success(final String sku, final String signature, final String ticket) {
|
||||||
godotPaymentV3.callbackSuccess(ticket, signature, sku);
|
godotPaymentV3.callbackSuccess(ticket, signature, sku);
|
||||||
|
|
||||||
if (auto_consume) {
|
if (auto_consume) {
|
||||||
new ConsumeTask(mService, activity) {
|
new ConsumeTask(mService, activity) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success(String ticket) {
|
protected void success(String ticket) {
|
||||||
}
|
}
|
||||||
@ -245,12 +240,10 @@ public class PaymentsManager {
|
|||||||
public void validatePurchase(String purchaseToken, final String sku) {
|
public void validatePurchase(String purchaseToken, final String sku) {
|
||||||
|
|
||||||
new ValidateTask(activity, godotPaymentV3) {
|
new ValidateTask(activity, godotPaymentV3) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success() {
|
protected void success() {
|
||||||
|
|
||||||
new ConsumeTask(mService, activity) {
|
new ConsumeTask(mService, activity) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success(String ticket) {
|
protected void success(String ticket) {
|
||||||
godotPaymentV3.callbackSuccess(ticket, null, sku);
|
godotPaymentV3.callbackSuccess(ticket, null, sku);
|
||||||
@ -283,7 +276,6 @@ public class PaymentsManager {
|
|||||||
|
|
||||||
public void consume(final String sku) {
|
public void consume(final String sku) {
|
||||||
new ConsumeTask(mService, activity) {
|
new ConsumeTask(mService, activity) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void success(String ticket) {
|
protected void success(String ticket) {
|
||||||
godotPaymentV3.callbackSuccessProductMassConsumed(ticket, "", sku);
|
godotPaymentV3.callbackSuccessProductMassConsumed(ticket, "", sku);
|
||||||
|
@ -88,7 +88,6 @@ abstract public class ReleaseAllConsumablesTask {
|
|||||||
String signature = mySignatures.get(i);
|
String signature = mySignatures.get(i);
|
||||||
//Log.d("godot", "A punto de consumir un item con token:" + token + "\n" + receipt);
|
//Log.d("godot", "A punto de consumir un item con token:" + token + "\n" + receipt);
|
||||||
new GenericConsumeTask(context, mService, sku, receipt, signature, token) {
|
new GenericConsumeTask(context, mService, sku, receipt, signature, token) {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(String sku, String receipt, String signature, String token) {
|
public void onSuccess(String sku, String receipt, String signature, String token) {
|
||||||
ReleaseAllConsumablesTask.this.success(sku, receipt, signature, token);
|
ReleaseAllConsumablesTask.this.success(sku, receipt, signature, token);
|
||||||
|
@ -63,7 +63,6 @@ abstract public class ValidateTask {
|
|||||||
|
|
||||||
public void validatePurchase(final String sku) {
|
public void validatePurchase(final String sku) {
|
||||||
new AsyncTask<String, String, String>() {
|
new AsyncTask<String, String, String>() {
|
||||||
|
|
||||||
private ProgressDialog dialog;
|
private ProgressDialog dialog;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -113,7 +112,6 @@ abstract public class ValidateTask {
|
|||||||
error(e.getMessage());
|
error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,6 @@ Error GameCenter::post_score(Variant p_score) {
|
|||||||
|
|
||||||
[GKScore reportScores:@[ reporter ]
|
[GKScore reportScores:@[ reporter ]
|
||||||
withCompletionHandler:^(NSError *error) {
|
withCompletionHandler:^(NSError *error) {
|
||||||
|
|
||||||
Dictionary ret;
|
Dictionary ret;
|
||||||
ret["type"] = "post_score";
|
ret["type"] = "post_score";
|
||||||
if (error == nil) {
|
if (error == nil) {
|
||||||
@ -177,7 +176,6 @@ Error GameCenter::award_achievement(Variant p_params) {
|
|||||||
|
|
||||||
[GKAchievement reportAchievements:@[ achievement ]
|
[GKAchievement reportAchievements:@[ achievement ]
|
||||||
withCompletionHandler:^(NSError *error) {
|
withCompletionHandler:^(NSError *error) {
|
||||||
|
|
||||||
Dictionary ret;
|
Dictionary ret;
|
||||||
ret["type"] = "award_achievement";
|
ret["type"] = "award_achievement";
|
||||||
if (error == nil) {
|
if (error == nil) {
|
||||||
@ -196,7 +194,6 @@ Error GameCenter::award_achievement(Variant p_params) {
|
|||||||
void GameCenter::request_achievement_descriptions() {
|
void GameCenter::request_achievement_descriptions() {
|
||||||
|
|
||||||
[GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:^(NSArray *descriptions, NSError *error) {
|
[GKAchievementDescription loadAchievementDescriptionsWithCompletionHandler:^(NSArray *descriptions, NSError *error) {
|
||||||
|
|
||||||
Dictionary ret;
|
Dictionary ret;
|
||||||
ret["type"] = "achievement_descriptions";
|
ret["type"] = "achievement_descriptions";
|
||||||
if (error == nil) {
|
if (error == nil) {
|
||||||
@ -252,7 +249,6 @@ void GameCenter::request_achievement_descriptions() {
|
|||||||
void GameCenter::request_achievements() {
|
void GameCenter::request_achievements() {
|
||||||
|
|
||||||
[GKAchievement loadAchievementsWithCompletionHandler:^(NSArray *achievements, NSError *error) {
|
[GKAchievement loadAchievementsWithCompletionHandler:^(NSArray *achievements, NSError *error) {
|
||||||
|
|
||||||
Dictionary ret;
|
Dictionary ret;
|
||||||
ret["type"] = "achievements";
|
ret["type"] = "achievements";
|
||||||
if (error == nil) {
|
if (error == nil) {
|
||||||
@ -347,7 +343,6 @@ Error GameCenter::request_identity_verification_signature() {
|
|||||||
|
|
||||||
GKLocalPlayer *player = [GKLocalPlayer localPlayer];
|
GKLocalPlayer *player = [GKLocalPlayer localPlayer];
|
||||||
[player generateIdentityVerificationSignatureWithCompletionHandler:^(NSURL *publicKeyUrl, NSData *signature, NSData *salt, uint64_t timestamp, NSError *error) {
|
[player generateIdentityVerificationSignatureWithCompletionHandler:^(NSURL *publicKeyUrl, NSData *signature, NSData *salt, uint64_t timestamp, NSError *error) {
|
||||||
|
|
||||||
Dictionary ret;
|
Dictionary ret;
|
||||||
ret["type"] = "identity_verification_signature";
|
ret["type"] = "identity_verification_signature";
|
||||||
if (error == nil) {
|
if (error == nil) {
|
||||||
|
@ -385,7 +385,6 @@ void OSUWP::ManagedType::update_clipboard() {
|
|||||||
if (data->Contains(StandardDataFormats::Text)) {
|
if (data->Contains(StandardDataFormats::Text)) {
|
||||||
|
|
||||||
create_task(data->GetTextAsync()).then([this](Platform::String ^ clipboard_content) {
|
create_task(data->GetTextAsync()).then([this](Platform::String ^ clipboard_content) {
|
||||||
|
|
||||||
this->clipboard = clipboard_content;
|
this->clipboard = clipboard_content;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ void AnimationNodeBlendSpace1D::set_tree(AnimationTree *p_player) {
|
|||||||
for (int i = 0; i < blend_points_used; i++) {
|
for (int i = 0; i < blend_points_used; i++) {
|
||||||
blend_points[i].node->set_tree(p_player);
|
blend_points[i].node->set_tree(p_player);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AnimationNodeBlendSpace1D::_validate_property(PropertyInfo &property) const {
|
void AnimationNodeBlendSpace1D::_validate_property(PropertyInfo &property) const {
|
||||||
|
@ -34,7 +34,6 @@ protected:
|
|||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void set_tree(AnimationTree *p_player);
|
virtual void set_tree(AnimationTree *p_player);
|
||||||
|
|
||||||
void add_blend_point(const Ref<AnimationRootNode> &p_node, float p_position, int p_at_index = -1);
|
void add_blend_point(const Ref<AnimationRootNode> &p_node, float p_position, int p_at_index = -1);
|
||||||
|
@ -9,7 +9,6 @@ void AnimationNodeBlendSpace2D::set_tree(AnimationTree *p_player) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void AnimationNodeBlendSpace2D::add_blend_point(const Ref<AnimationRootNode> &p_node, const Vector2 &p_position, int p_at_index) {
|
void AnimationNodeBlendSpace2D::add_blend_point(const Ref<AnimationRootNode> &p_node, const Vector2 &p_position, int p_at_index) {
|
||||||
ERR_FAIL_COND(blend_points_used >= MAX_BLEND_POINTS);
|
ERR_FAIL_COND(blend_points_used >= MAX_BLEND_POINTS);
|
||||||
ERR_FAIL_COND(p_node.is_null());
|
ERR_FAIL_COND(p_node.is_null());
|
||||||
|
@ -47,7 +47,6 @@ protected:
|
|||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
virtual void set_tree(AnimationTree *p_player);
|
virtual void set_tree(AnimationTree *p_player);
|
||||||
|
|
||||||
void add_blend_point(const Ref<AnimationRootNode> &p_node, const Vector2 &p_position, int p_at_index = -1);
|
void add_blend_point(const Ref<AnimationRootNode> &p_node, const Vector2 &p_position, int p_at_index = -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user