Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@ -9,11 +9,12 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=665bb7026a3b2824cbb98a8904d85957b0cf3804$
//
#include "libcef_dll/cpptoc/list_value_cpptoc.h"
#include "libcef_dll/cpptoc/process_message_cpptoc.h"
// GLOBAL FUNCTIONS - Body may be edited by hand.
CEF_EXPORT cef_process_message_t* cef_process_message_create(
@ -26,14 +27,13 @@ CEF_EXPORT cef_process_message_t* cef_process_message_create(
return NULL;
// Execute
CefRefPtr<CefProcessMessage> _retval = CefProcessMessage::Create(
CefString(name));
CefRefPtr<CefProcessMessage> _retval =
CefProcessMessage::Create(CefString(name));
// Return type: refptr_same
return CefProcessMessageCppToC::Wrap(_retval);
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
@ -52,8 +52,8 @@ int CEF_CALLBACK process_message_is_valid(struct _cef_process_message_t* self) {
return _retval;
}
int CEF_CALLBACK process_message_is_read_only(
struct _cef_process_message_t* self) {
int CEF_CALLBACK
process_message_is_read_only(struct _cef_process_message_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -67,8 +67,8 @@ int CEF_CALLBACK process_message_is_read_only(
return _retval;
}
struct _cef_process_message_t* CEF_CALLBACK process_message_copy(
struct _cef_process_message_t* self) {
struct _cef_process_message_t* CEF_CALLBACK
process_message_copy(struct _cef_process_message_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -76,15 +76,15 @@ struct _cef_process_message_t* CEF_CALLBACK process_message_copy(
return NULL;
// Execute
CefRefPtr<CefProcessMessage> _retval = CefProcessMessageCppToC::Get(
self)->Copy();
CefRefPtr<CefProcessMessage> _retval =
CefProcessMessageCppToC::Get(self)->Copy();
// Return type: refptr_same
return CefProcessMessageCppToC::Wrap(_retval);
}
cef_string_userfree_t CEF_CALLBACK process_message_get_name(
struct _cef_process_message_t* self) {
cef_string_userfree_t CEF_CALLBACK
process_message_get_name(struct _cef_process_message_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -98,8 +98,8 @@ cef_string_userfree_t CEF_CALLBACK process_message_get_name(
return _retval.DetachToUserFree();
}
struct _cef_list_value_t* CEF_CALLBACK process_message_get_argument_list(
struct _cef_process_message_t* self) {
struct _cef_list_value_t* CEF_CALLBACK
process_message_get_argument_list(struct _cef_process_message_t* self) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
@ -107,8 +107,8 @@ struct _cef_list_value_t* CEF_CALLBACK process_message_get_argument_list(
return NULL;
// Execute
CefRefPtr<CefListValue> _retval = CefProcessMessageCppToC::Get(
self)->GetArgumentList();
CefRefPtr<CefListValue> _retval =
CefProcessMessageCppToC::Get(self)->GetArgumentList();
// Return type: refptr_same
return CefListValueCppToC::Wrap(_retval);
@ -116,7 +116,6 @@ struct _cef_list_value_t* CEF_CALLBACK process_message_get_argument_list(
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefProcessMessageCppToC::CefProcessMessageCppToC() {
@ -127,18 +126,25 @@ CefProcessMessageCppToC::CefProcessMessageCppToC() {
GetStruct()->get_argument_list = process_message_get_argument_list;
}
template<> CefRefPtr<CefProcessMessage> CefCppToCRefCounted<CefProcessMessageCppToC,
CefProcessMessage, cef_process_message_t>::UnwrapDerived(
CefWrapperType type, cef_process_message_t* s) {
template <>
CefRefPtr<CefProcessMessage> CefCppToCRefCounted<
CefProcessMessageCppToC,
CefProcessMessage,
cef_process_message_t>::UnwrapDerived(CefWrapperType type,
cef_process_message_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCppToCRefCounted<CefProcessMessageCppToC,
CefProcessMessage, cef_process_message_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCppToCRefCounted<CefProcessMessageCppToC,
CefProcessMessage,
cef_process_message_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToCRefCounted<CefProcessMessageCppToC,
CefProcessMessage, cef_process_message_t>::kWrapperType =
template <>
CefWrapperType CefCppToCRefCounted<CefProcessMessageCppToC,
CefProcessMessage,
cef_process_message_t>::kWrapperType =
WT_PROCESS_MESSAGE;