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=11321ae1cfc63ec2688da39afd83b866dfd4a497$
//
#include "libcef_dll/ctocpp/stream_reader_ctocpp.h"
#include "libcef_dll/ctocpp/zip_reader_ctocpp.h"
// STATIC METHODS - Body may be edited by hand.
CefRefPtr<CefZipReader> CefZipReader::Create(
@@ -26,14 +27,13 @@ CefRefPtr<CefZipReader> CefZipReader::Create(
return NULL;
// Execute
cef_zip_reader_t* _retval = cef_zip_reader_create(
CefStreamReaderCToCpp::Unwrap(stream));
cef_zip_reader_t* _retval =
cef_zip_reader_create(CefStreamReaderCToCpp::Unwrap(stream));
// Return type: refptr_same
return CefZipReaderCToCpp::Wrap(_retval);
}
// VIRTUAL METHODS - Body may be edited by hand.
bool CefZipReaderCToCpp::MoveToFirstFile() {
@@ -47,7 +47,7 @@ bool CefZipReaderCToCpp::MoveToFirstFile() {
int _retval = _struct->move_to_first_file(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefZipReaderCToCpp::MoveToNextFile() {
@@ -61,11 +61,11 @@ bool CefZipReaderCToCpp::MoveToNextFile() {
int _retval = _struct->move_to_next_file(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefZipReaderCToCpp::MoveToFile(const CefString& fileName,
bool caseSensitive) {
bool caseSensitive) {
cef_zip_reader_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, move_to_file))
return false;
@@ -78,12 +78,11 @@ bool CefZipReaderCToCpp::MoveToFile(const CefString& fileName,
return false;
// Execute
int _retval = _struct->move_to_file(_struct,
fileName.GetStruct(),
caseSensitive);
int _retval =
_struct->move_to_file(_struct, fileName.GetStruct(), caseSensitive);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefZipReaderCToCpp::Close() {
@@ -97,7 +96,7 @@ bool CefZipReaderCToCpp::Close() {
int _retval = _struct->close(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
CefString CefZipReaderCToCpp::GetFileName() {
@@ -154,11 +153,10 @@ bool CefZipReaderCToCpp::OpenFile(const CefString& password) {
// Unverified params: password
// Execute
int _retval = _struct->open_file(_struct,
password.GetStruct());
int _retval = _struct->open_file(_struct, password.GetStruct());
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
bool CefZipReaderCToCpp::CloseFile() {
@@ -172,7 +170,7 @@ bool CefZipReaderCToCpp::CloseFile() {
int _retval = _struct->close_file(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
int CefZipReaderCToCpp::ReadFile(void* buffer, size_t bufferSize) {
@@ -188,9 +186,7 @@ int CefZipReaderCToCpp::ReadFile(void* buffer, size_t bufferSize) {
return 0;
// Execute
int _retval = _struct->read_file(_struct,
buffer,
bufferSize);
int _retval = _struct->read_file(_struct, buffer, bufferSize);
// Return type: simple
return _retval;
@@ -221,26 +217,30 @@ bool CefZipReaderCToCpp::Eof() {
int _retval = _struct->eof(_struct);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
// CONSTRUCTOR - Do not edit by hand.
CefZipReaderCToCpp::CefZipReaderCToCpp() {
}
CefZipReaderCToCpp::CefZipReaderCToCpp() {}
template<> cef_zip_reader_t* CefCToCppRefCounted<CefZipReaderCToCpp,
CefZipReader, cef_zip_reader_t>::UnwrapDerived(CefWrapperType type,
CefZipReader* c) {
template <>
cef_zip_reader_t*
CefCToCppRefCounted<CefZipReaderCToCpp, CefZipReader, cef_zip_reader_t>::
UnwrapDerived(CefWrapperType type, CefZipReader* c) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCToCppRefCounted<CefZipReaderCToCpp,
CefZipReader, cef_zip_reader_t>::DebugObjCt = 0;
template <>
base::AtomicRefCount CefCToCppRefCounted<CefZipReaderCToCpp,
CefZipReader,
cef_zip_reader_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCToCppRefCounted<CefZipReaderCToCpp, CefZipReader,
cef_zip_reader_t>::kWrapperType = WT_ZIP_READER;
template <>
CefWrapperType CefCToCppRefCounted<CefZipReaderCToCpp,
CefZipReader,
cef_zip_reader_t>::kWrapperType =
WT_ZIP_READER;