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,6 +9,8 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=d520e6de025a46b26dadb74dbb55aefb956ebbcc$
//
#include "libcef_dll/ctocpp/browser_ctocpp.h"
#include "libcef_dll/ctocpp/frame_ctocpp.h"
@@ -17,7 +19,6 @@
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
#include "libcef_dll/ctocpp/v8value_ctocpp.h"
// STATIC METHODS - Body may be edited by hand.
CefRefPtr<CefV8Context> CefV8Context::GetCurrentContext() {
@@ -47,10 +48,9 @@ bool CefV8Context::InContext() {
int _retval = cef_v8context_in_context();
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
// VIRTUAL METHODS - Body may be edited by hand.
CefRefPtr<CefTaskRunner> CefV8ContextCToCpp::GetTaskRunner() {
@@ -78,7 +78,7 @@ bool CefV8ContextCToCpp::IsValid() {
int _retval = _struct->is_valid(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
CefRefPtr<CefBrowser> CefV8ContextCToCpp::GetBrowser() {
@@ -134,7 +134,7 @@ bool CefV8ContextCToCpp::Enter() {
int _retval = _struct->enter(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefV8ContextCToCpp::Exit() {
@@ -148,7 +148,7 @@ bool CefV8ContextCToCpp::Exit() {
int _retval = _struct->exit(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that) {
@@ -164,16 +164,17 @@ bool CefV8ContextCToCpp::IsSame(CefRefPtr<CefV8Context> that) {
return false;
// Execute
int _retval = _struct->is_same(_struct,
CefV8ContextCToCpp::Unwrap(that));
int _retval = _struct->is_same(_struct, CefV8ContextCToCpp::Unwrap(that));
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefV8ContextCToCpp::Eval(const CefString& code,
const CefString& script_url, int start_line, CefRefPtr<CefV8Value>& retval,
CefRefPtr<CefV8Exception>& exception) {
const CefString& script_url,
int start_line,
CefRefPtr<CefV8Value>& retval,
CefRefPtr<CefV8Exception>& exception) {
cef_v8context_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, eval))
return false;
@@ -198,12 +199,8 @@ bool CefV8ContextCToCpp::Eval(const CefString& code,
cef_v8exception_t* exceptionOrig = exceptionStruct;
// Execute
int _retval = _struct->eval(_struct,
code.GetStruct(),
script_url.GetStruct(),
start_line,
&retvalStruct,
&exceptionStruct);
int _retval = _struct->eval(_struct, code.GetStruct(), script_url.GetStruct(),
start_line, &retvalStruct, &exceptionStruct);
// Restore param:retval; type: refptr_same_byref
if (retvalStruct) {
@@ -223,26 +220,30 @@ bool CefV8ContextCToCpp::Eval(const CefString& code,
}
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
// CONSTRUCTOR - Do not edit by hand.
CefV8ContextCToCpp::CefV8ContextCToCpp() {
}
CefV8ContextCToCpp::CefV8ContextCToCpp() {}
template<> cef_v8context_t* CefCToCppRefCounted<CefV8ContextCToCpp,
CefV8Context, cef_v8context_t>::UnwrapDerived(CefWrapperType type,
CefV8Context* c) {
template <>
cef_v8context_t*
CefCToCppRefCounted<CefV8ContextCToCpp, CefV8Context, cef_v8context_t>::
UnwrapDerived(CefWrapperType type, CefV8Context* c) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCToCppRefCounted<CefV8ContextCToCpp,
CefV8Context, cef_v8context_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCToCppRefCounted<CefV8ContextCToCpp,
CefV8Context,
cef_v8context_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCToCppRefCounted<CefV8ContextCToCpp, CefV8Context,
cef_v8context_t>::kWrapperType = WT_V8CONTEXT;
template <>
CefWrapperType CefCToCppRefCounted<CefV8ContextCToCpp,
CefV8Context,
cef_v8context_t>::kWrapperType =
WT_V8CONTEXT;