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,10 +9,11 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=f66e7704d6938d0a6997fd7e7f575930659af430$
//
#include "libcef_dll/ctocpp/post_data_element_ctocpp.h"
// STATIC METHODS - Body may be edited by hand.
CefRefPtr<CefPostDataElement> CefPostDataElement::Create() {
@@ -25,7 +26,6 @@ CefRefPtr<CefPostDataElement> CefPostDataElement::Create() {
return CefPostDataElementCToCpp::Wrap(_retval);
}
// VIRTUAL METHODS - Body may be edited by hand.
bool CefPostDataElementCToCpp::IsReadOnly() {
@@ -39,7 +39,7 @@ bool CefPostDataElementCToCpp::IsReadOnly() {
int _retval = _struct->is_read_only(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
void CefPostDataElementCToCpp::SetToEmpty() {
@@ -66,8 +66,7 @@ void CefPostDataElementCToCpp::SetToFile(const CefString& fileName) {
return;
// Execute
_struct->set_to_file(_struct,
fileName.GetStruct());
_struct->set_to_file(_struct, fileName.GetStruct());
}
void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes) {
@@ -83,9 +82,7 @@ void CefPostDataElementCToCpp::SetToBytes(size_t size, const void* bytes) {
return;
// Execute
_struct->set_to_bytes(_struct,
size,
bytes);
_struct->set_to_bytes(_struct, size, bytes);
}
CefPostDataElement::Type CefPostDataElementCToCpp::GetType() {
@@ -145,32 +142,36 @@ size_t CefPostDataElementCToCpp::GetBytes(size_t size, void* bytes) {
return 0;
// Execute
size_t _retval = _struct->get_bytes(_struct,
size,
bytes);
size_t _retval = _struct->get_bytes(_struct, size, bytes);
// Return type: simple
return _retval;
}
// CONSTRUCTOR - Do not edit by hand.
CefPostDataElementCToCpp::CefPostDataElementCToCpp() {
}
CefPostDataElementCToCpp::CefPostDataElementCToCpp() {}
template<> cef_post_data_element_t* CefCToCppRefCounted<CefPostDataElementCToCpp,
CefPostDataElement, cef_post_data_element_t>::UnwrapDerived(
CefWrapperType type, CefPostDataElement* c) {
template <>
cef_post_data_element_t* CefCToCppRefCounted<
CefPostDataElementCToCpp,
CefPostDataElement,
cef_post_data_element_t>::UnwrapDerived(CefWrapperType type,
CefPostDataElement* c) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCToCppRefCounted<CefPostDataElementCToCpp,
CefPostDataElement, cef_post_data_element_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCToCppRefCounted<CefPostDataElementCToCpp,
CefPostDataElement,
cef_post_data_element_t>::DebugObjCt =
0;
#endif
template<> CefWrapperType CefCToCppRefCounted<CefPostDataElementCToCpp,
CefPostDataElement, cef_post_data_element_t>::kWrapperType =
template <>
CefWrapperType CefCToCppRefCounted<CefPostDataElementCToCpp,
CefPostDataElement,
cef_post_data_element_t>::kWrapperType =
WT_POST_DATA_ELEMENT;