diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-02-26 08:20:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-02-26 09:03:48 +0100 |
commit | 84cd2e5a712f68062429d369cc5a196f7070fd41 (patch) | |
tree | 63b4b9b71ed0a0b12724ff46c727a14e6f4c949d /compilerplugins/clang/simplifyconstruct.cxx | |
parent | e20cc47c0e03f3412517a3ff4ac856f6d250205b (diff) |
loplugin:simplifyconstruct improve warning message
which was needlessly cryptic
Change-Id: Ifb91631705accff3f49ec3f55b67e83532d70a12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182199
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'compilerplugins/clang/simplifyconstruct.cxx')
-rw-r--r-- | compilerplugins/clang/simplifyconstruct.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compilerplugins/clang/simplifyconstruct.cxx b/compilerplugins/clang/simplifyconstruct.cxx index d9eff0b3af89..8c67abe6806f 100644 --- a/compilerplugins/clang/simplifyconstruct.cxx +++ b/compilerplugins/clang/simplifyconstruct.cxx @@ -96,7 +96,8 @@ bool SimplifyConstruct::VisitVarDecl(VarDecl const* varDecl) if (compiler.getSourceManager().isMacroBodyExpansion(init->getBeginLoc())) return true; - report(DiagnosticsEngine::Warning, "simplify", varDecl->getLocation()) + report(DiagnosticsEngine::Warning, "simplify construction, just use 'Foo a(...);'", + varDecl->getLocation()) << varDecl->getSourceRange(); return true; |