Kaydet (Commit) be878d7c authored tarafından Noel Grandin's avatar Noel Grandin

improve warning message in passstringbyref compiler plugin

Change-Id: Ia8470bbd04c841e6c44c182493fede3dc312f635
üst 96710f8e
......@@ -49,14 +49,14 @@ bool PassStringByRef::VisitFunctionDecl(const FunctionDecl * functionDecl) {
if (typeName == "class rtl::OUString") {
report(
DiagnosticsEngine::Warning,
"passing OUString by value, rather pass by reference",
"passing OUString by value, rather pass by reference .e.g. 'const OUString&'",
pvDecl->getSourceRange().getBegin())
<< pvDecl->getSourceRange();
}
else if (typeName == "class rtl::OString") {
report(
DiagnosticsEngine::Warning,
"passing OString by value, rather pass by reference",
"passing OString by value, rather pass by reference .e.g. 'const OString&'",
pvDecl->getSourceRange().getBegin())
<< pvDecl->getSourceRange();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment