Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1508)

Unified Diff: third_party/WebKit/Source/wtf/Assertions.cpp

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/Assertions.h ('k') | third_party/WebKit/Source/wtf/BitVector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Assertions.cpp
diff --git a/third_party/WebKit/Source/wtf/Assertions.cpp b/third_party/WebKit/Source/wtf/Assertions.cpp
index 4f0a7a9452a1860930764eda10d3ac3d7ba134df..2620b5535e9895add28e1a5eaba5fc8b6686555a 100644
--- a/third_party/WebKit/Source/wtf/Assertions.cpp
+++ b/third_party/WebKit/Source/wtf/Assertions.cpp
@@ -27,7 +27,8 @@
// The vprintf_stderr_common function triggers this error in the Mac build.
// Feel free to remove this pragma if this file builds on Mac.
-// According to http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas
+// According to
+// http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Diagnostic-Pragmas.html#Diagnostic-Pragmas
// we need to place this directive before any data or functions are defined.
#pragma GCC diagnostic ignored "-Wmissing-format-attribute"
@@ -143,9 +144,10 @@ static void printCallSite(const char* file, int line, const char* function) {
#if OS(WIN) && defined(_DEBUG)
_CrtDbgReport(_CRT_WARN, file, line, nullptr, "%s\n", function);
#else
- // By using this format, which matches the format used by MSVC for compiler errors, developers
- // using Visual Studio can double-click the file/line number in the Output Window to have the
- // editor navigate to that line of code. It seems fine for other developers, too.
+ // By using this format, which matches the format used by MSVC for compiler
+ // errors, developers using Visual Studio can double-click the file/line
+ // number in the Output Window to have the editor navigate to that line of
+ // code. It seems fine for other developers, too.
printf_stderr_common("%s(%d) : %s\n", file, line, function);
#endif
}
@@ -165,9 +167,9 @@ void WTFGetBacktrace(void** stack, int* size) {
#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__))
*size = backtrace(stack, *size);
#elif OS(WIN)
- // The CaptureStackBackTrace function is available in XP, but it is not defined
- // in the Windows Server 2003 R2 Platform SDK. So, we'll grab the function
- // through GetProcAddress.
+ // The CaptureStackBackTrace function is available in XP, but it is not
+ // defined in the Windows Server 2003 R2 Platform SDK. So, we'll grab the
+ // function through GetProcAddress.
typedef WORD(NTAPI * RtlCaptureStackBackTraceFunc)(DWORD, DWORD, PVOID*,
PDWORD);
HMODULE kernel32 = ::GetModuleHandleW(L"Kernel32.dll");
@@ -189,7 +191,8 @@ void WTFGetBacktrace(void** stack, int* size) {
void WTFReportBacktrace(int framesToShow) {
static const int framesToSkip = 2;
- // Use alloca to allocate on the stack since this function is used in OOM situations.
+ // Use alloca to allocate on the stack since this function is used in OOM
+ // situations.
void** samples = static_cast<void**>(
alloca((framesToShow + framesToSkip) * sizeof(void*)));
int frames = framesToShow + framesToSkip;
« no previous file with comments | « third_party/WebKit/Source/wtf/Assertions.h ('k') | third_party/WebKit/Source/wtf/BitVector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698