Make CEF compliant with Google/Chromium style (issue #473).

- Add a new check_style tool based on Google's cpplint that can be used to verify compliance of pending changes and specific files/directories.
- Update existing CEF source code to be compliant with the style requirements.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@463 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-01-09 23:46:23 +00:00
parent 9cc61f448b
commit 1073577d03
558 changed files with 9002 additions and 10977 deletions

View File

@@ -1,4 +1,4 @@
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
@@ -15,8 +15,7 @@
// VIRTUAL METHODS - Body may be edited by hand.
CefString CefV8ExceptionCToCpp::GetMessage()
{
CefString CefV8ExceptionCToCpp::GetMessage() {
if (CEF_MEMBER_MISSING(struct_, get_message))
return CefString();
@@ -31,8 +30,7 @@ CefString CefV8ExceptionCToCpp::GetMessage()
return _retvalStr;
}
CefString CefV8ExceptionCToCpp::GetSourceLine()
{
CefString CefV8ExceptionCToCpp::GetSourceLine() {
if (CEF_MEMBER_MISSING(struct_, get_source_line))
return CefString();
@@ -47,8 +45,7 @@ CefString CefV8ExceptionCToCpp::GetSourceLine()
return _retvalStr;
}
CefString CefV8ExceptionCToCpp::GetScriptResourceName()
{
CefString CefV8ExceptionCToCpp::GetScriptResourceName() {
if (CEF_MEMBER_MISSING(struct_, get_script_resource_name))
return CefString();
@@ -63,8 +60,7 @@ CefString CefV8ExceptionCToCpp::GetScriptResourceName()
return _retvalStr;
}
int CefV8ExceptionCToCpp::GetLineNumber()
{
int CefV8ExceptionCToCpp::GetLineNumber() {
if (CEF_MEMBER_MISSING(struct_, get_line_number))
return 0;
@@ -77,8 +73,7 @@ int CefV8ExceptionCToCpp::GetLineNumber()
return _retval;
}
int CefV8ExceptionCToCpp::GetStartPosition()
{
int CefV8ExceptionCToCpp::GetStartPosition() {
if (CEF_MEMBER_MISSING(struct_, get_start_position))
return 0;
@@ -91,8 +86,7 @@ int CefV8ExceptionCToCpp::GetStartPosition()
return _retval;
}
int CefV8ExceptionCToCpp::GetEndPosition()
{
int CefV8ExceptionCToCpp::GetEndPosition() {
if (CEF_MEMBER_MISSING(struct_, get_end_position))
return 0;
@@ -105,8 +99,7 @@ int CefV8ExceptionCToCpp::GetEndPosition()
return _retval;
}
int CefV8ExceptionCToCpp::GetStartColumn()
{
int CefV8ExceptionCToCpp::GetStartColumn() {
if (CEF_MEMBER_MISSING(struct_, get_start_column))
return 0;
@@ -119,8 +112,7 @@ int CefV8ExceptionCToCpp::GetStartColumn()
return _retval;
}
int CefV8ExceptionCToCpp::GetEndColumn()
{
int CefV8ExceptionCToCpp::GetEndColumn() {
if (CEF_MEMBER_MISSING(struct_, get_end_column))
return 0;