WebKit 코드 사양
움츠러들다
int main()
{
return 0;
}
오류:
int main()
{
return 0;
}
// Document.h
namespace WebCore {
class Document {
Document();
...
};
} // namespace WebCore
오류:
// Document.h
namespace WebCore {
class Document {
Document();
...
};
} // namespace WebCore
// Document.cpp
namespace WebCore {
Document::Document()
{
...
}
} // namespace WebCore
오류:
// Document.cpp
namespace WebCore {
Document::Document()
{
...
}
} // namespace WebCore
switch (condition) {
case fooCondition:
case barCondition:
i++;
break;
default:
i--;
}
오류:
switch (condition) {
case fooCondition:
case barCondition:
i++;
break;
default:
i--;
}
return attr->name() == srcAttr
|| attr->name() == lowsrcAttr
|| (attr->name() == usemapAttr && attr->value().domString()[0] != '#');
오류:
return attr->name() == srcAttr ||
attr->name() == lowsrcAttr ||
(attr->name() == usemapAttr && attr->value().domString()[0] != '#');
스페이스 바
i++;
오류:
i ++;
y = m * x + b;
f(a, b);
c = a | b;
return condition ? 1 : 0;
오류:
y=m*x+b;
f(a,b);
c = a|b;
return condition ? 1:0;
if (condition)
doIt();
오류:
if(condition)
doIt();
f(a, b);
오류:
f (a, b);
f( a, b );
줄을 바꾸다
x++;
y++;
if (condition)
doIt();
오류:
x++; y++;
if (condition) doIt();
if (condition) {
...
} else {
...
}
오류:
if (condition) {
...
}
else {
...
}
if (condition) {
...
return someValue;
}
if (condition) {
...
}
오류:
if (condition) {
...
return someValue;
} else if (condition) {
...
}
대괄호
int main()
{
...
}
오류:
int main() {
...
}
class MyClass {
...
};
namespace WebCore {
...
}
for (int i = 0; i < 10; i++) {
...
}
오류:
class MyClass
{
...
};
if (condition)
doIt();
오류:
if (condition) {
doIt();
}
for ( ; current; current = current->next) { }
오류:
for ( ; current; current = current->next);
Null, False 및 0
if (condition)
doIt();
if (!ptr)
return;
if (!count)
return;
오류:
if (condition == true)
doIt();
if (ptr == NULL)
return;
if (count == 0)
return;
명명
struct Data;
size_t bufferSize;
class HTMLDocument;
오류:
struct data;
size_t buffer_size;
class HtmlDocument;
size_t characterSize;
size_t length;
short tabIndex; // more canonical
오류:
size_t charSize;
size_t len;
short tabulationIndex; // bizarre
class String {
...
short m_length;
};
오류:
class String {
...
short length;
};
@class String
...
short _length;
@end
오류:
@class String
...
short length;
@end
bool isValid;
bool didSendData;
오류:
bool valid;
bool sentData;
void setCount(size_t); // sets m_count
size_t count(); // returns m_count
오류:
void setCount(size_t); // sets m_theCount
size_t getCount();
bool convertToASCII(short*, size_t);
오류:
bool toASCII(short*, size_t);
void setCount(size_t);
오류:
void setCount(size_t count);
#define WBStopButtonTitle() /
NSLocalizedString(@"Stop", @"Stop button title")
오류:
#define WB_STOP_BUTTON_TITLE /
NSLocalizedString(@"Stop", @"Stop button title")
#define WBStopButtontitle /
NSLocalizedString(@"Stop", @"Stop button title")
// HTMLDocument.h
#ifndef HTMLDocument_h
#define HTMLDocument_h
오류:
// HTMLDocument.h
#ifndef _HTML_DOCUMENT_H_
#define _HTML_DOCUMENT_H_
기타 구두점
MyClass::MyClass(Document* doc)
: MySuperClass()
, m_myMember(0)
, m_doc(doc)
{
}
MyOtherClass::MyOtherClass()
: MySuperClass()
{
}
오류:
MyClass::MyClass(Document* doc) : MySuperClass()
{
m_myMember = 0;
m_doc = doc;
}
MyOtherClass::MyOtherClass() : MySuperClass() {}
Image* SVGStyledElement::doSomething(PaintInfo& paintInfo)
{
SVGStyledElement* element = static_cast(node());
const KCDashArray& dashes = dashArray();
오류:
Image *SVGStyledElement::doSomething(PaintInfo &paintInfo)
{
SVGStyledElement *element = static_cast(node());
const KCDashArray &dashes = dashArray();
#include 문
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Access Request, Session and Application in Struts2If we want to use request, Session and application in JSP, what should we do? We can obtain Map type objects such as Req...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.