MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / warning

Method warning

tools/aapt/SourcePos.cpp:137–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137int
138SourcePos::warning(const char* fmt, ...) const
139{
140 int retval=0;
141 char buf[1024];
142 va_list ap;
143 va_start(ap, fmt);
144 retval = vsnprintf(buf, sizeof(buf), fmt, ap);
145 va_end(ap);
146 char* p = buf + retval - 1;
147 while (p > buf && *p == '\n') {
148 *p = '\0';
149 p--;
150 }
151 ErrorPos(this->file, this->line, String8(buf), false).print(stderr);
152 return retval;
153}
154
155bool
156SourcePos::hasErrors()

Callers 2

writeSymbolClassFunction · 0.45
testAndroidLogHandlerMethod · 0.45

Calls 2

ErrorPosClass · 0.85
printMethod · 0.45

Tested by 1

testAndroidLogHandlerMethod · 0.36