diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-04-28 21:11:50 +0000 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2019-04-29 07:04:48 +0200 |
commit | 46d3efff80568c0f496db8835074fb3054d5ae02 (patch) | |
tree | b380fcc65779f7c5bf2082f40afeb3e2108e3fb7 /compilerplugins | |
parent | 4c868602960a362edbea28a53535bdee4cfc2230 (diff) |
Fix typo
Change-Id: I6e04287504cc8d4c0e3d09632ee1c7355157e5ee
Reviewed-on: https://gerrit.libreoffice.org/71500
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 83a62a617d06..05cfa03ff711 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -23,9 +23,9 @@ #include "plugin.hxx" // Define a "string constant" to be a constant expression either of type "array -// of N char" where each array element is a non-NUL ASCII character---except -// that the last array element may be NUL, or, in some situations, of type char -// with a ASCII value (including NUL). Note that the former includes +// of N char" where each array element is a non-NULL ASCII character---except +// that the last array element may be NULL, or, in some situations, of type char +// with an ASCII value (including NULL). Note that the former includes // expressions denoting narrow string literals like "foo", and, with toolchains // that support constexpr, constexpr variables declared like // @@ -559,7 +559,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument containing" - " embedded NULs"), + " embedded NULLs"), expr->getExprLoc()) << fdecl->getQualifiedNameAsString() << expr->getSourceRange(); } @@ -601,7 +601,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument containing" - " embedded NULs"), + " embedded NULLs"), expr->getExprLoc()) << fdecl->getQualifiedNameAsString() << expr->getSourceRange(); @@ -646,7 +646,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument containing" - " embedded NULs"), + " embedded NULLs"), expr->getExprLoc()) << fdecl->getQualifiedNameAsString() << expr->getSourceRange(); @@ -689,7 +689,7 @@ bool StringConstant::VisitCallExpr(CallExpr const * expr) { report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument containing" - " embedded NULs"), + " embedded NULLs"), expr->getExprLoc()) << fdecl->getQualifiedNameAsString() << expr->getSourceRange(); } @@ -844,7 +844,7 @@ bool StringConstant::VisitCXXConstructExpr(CXXConstructExpr const * expr) { report( DiagnosticsEngine::Warning, ("construction of %0 with string constant argument" - " containing embedded NULs"), + " containing embedded NULLs"), expr->getExprLoc()) << classdecl << expr->getSourceRange(); } @@ -1434,7 +1434,7 @@ bool StringConstant::isStringConstant( } case APValue::Array: { - if (v.hasArrayFiller()) { //TODO: handle final NUL filler? + if (v.hasArrayFiller()) { //TODO: handle final NULL filler? return false; } unsigned n = v.getArraySize(); @@ -1716,7 +1716,7 @@ void StringConstant::handleChar( report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument containing embedded" - " NULs"), + " NULLs"), getMemberLocation(expr)) << callee->getQualifiedNameAsString() << expr->getSourceRange(); return; @@ -1725,7 +1725,7 @@ void StringConstant::handleChar( report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument lacking a terminating" - " NUL"), + " NULL"), getMemberLocation(expr)) << callee->getQualifiedNameAsString() << expr->getSourceRange(); return; @@ -2002,7 +2002,7 @@ void StringConstant::handleFunArgOstring( report( DiagnosticsEngine::Warning, ("call of '%0' with string constant argument lacking a" - " terminating NUL"), + " terminating NULL"), getMemberLocation(expr)) << callee->getQualifiedNameAsString() << expr->getSourceRange(); return; @@ -2056,7 +2056,7 @@ void StringConstant::handleFunArgOstring( report( DiagnosticsEngine::Warning, ("call of %0 constructor with string constant" - " argument containing embedded NULs"), + " argument containing embedded NULLs"), cexpr->getLocation()) << classdecl << cexpr->getSourceRange(); return; @@ -2065,7 +2065,7 @@ void StringConstant::handleFunArgOstring( report( DiagnosticsEngine::Warning, ("call of %0 constructor with string constant" - " argument lacking a terminating NUL"), + " argument lacking a terminating NULL"), cexpr->getLocation()) << classdecl << cexpr->getSourceRange(); return; |