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,15 +9,18 @@
// implementations. See the translator.README.txt file in the tools directory
// for more information.
//
// $hash=18f54750f071fa94a3397dedaf2b90c3d4fe3f4b$
//
#include "libcef_dll/cpptoc/navigation_entry_cpptoc.h"
#include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h"
// VIRTUAL METHODS - Body may be edited by hand.
bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr<CefNavigationEntry> entry,
bool current, int index, int total) {
bool current,
int index,
int total) {
cef_navigation_entry_visitor_t* _struct = GetStruct();
if (CEF_MEMBER_MISSING(_struct, visit))
return false;
@@ -30,35 +33,39 @@ bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr<CefNavigationEntry> entry,
return false;
// Execute
int _retval = _struct->visit(_struct,
CefNavigationEntryCppToC::Wrap(entry),
current,
index,
total);
int _retval = _struct->visit(_struct, CefNavigationEntryCppToC::Wrap(entry),
current, index, total);
// Return type: bool
return _retval?true:false;
return _retval ? true : false;
}
// CONSTRUCTOR - Do not edit by hand.
CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {
}
CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {}
template<> cef_navigation_entry_visitor_t* CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::UnwrapDerived(
CefWrapperType type, CefNavigationEntryVisitor* c) {
template <>
cef_navigation_entry_visitor_t* CefCToCppRefCounted<
CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor,
cef_navigation_entry_visitor_t>::UnwrapDerived(CefWrapperType type,
CefNavigationEntryVisitor*
c) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#if DCHECK_IS_ON()
template<> base::AtomicRefCount CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::DebugObjCt =
0;
template <>
base::AtomicRefCount
CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor,
cef_navigation_entry_visitor_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor, cef_navigation_entry_visitor_t>::kWrapperType =
WT_NAVIGATION_ENTRY_VISITOR;
template <>
CefWrapperType
CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
CefNavigationEntryVisitor,
cef_navigation_entry_visitor_t>::kWrapperType =
WT_NAVIGATION_ENTRY_VISITOR;