better name for a function in compilerplugins
The function is not just about a spelling location. Change-Id: I96e9e9ef7e27a9763397b4b86473c1c30d0e3eeb Reviewed-on: https://gerrit.libreoffice.org/80381 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
This commit is contained in:
@@ -105,7 +105,7 @@ bool StringConcatLiterals::VisitCallExpr(CallExpr const * expr) {
|
||||
|
||||
// We add an extra " " in the TOOLS_WARN_EXCEPTION macro, which triggers this plugin
|
||||
if (loplugin::isSamePathname(
|
||||
getFileNameOfSpellingLoc(
|
||||
getFilenameOfLocation(
|
||||
compiler.getSourceManager().getSpellingLoc(
|
||||
compiler.getSourceManager().getImmediateMacroCallerLoc(
|
||||
compiler.getSourceManager().getImmediateMacroCallerLoc(
|
||||
@@ -114,7 +114,7 @@ bool StringConcatLiterals::VisitCallExpr(CallExpr const * expr) {
|
||||
return true;
|
||||
|
||||
StringRef name {
|
||||
getFileNameOfSpellingLoc(
|
||||
getFilenameOfLocation(
|
||||
compiler.getSourceManager().getSpellingLoc(compat::getBeginLoc(expr))) };
|
||||
if (loplugin::isSamePathname(
|
||||
name, SRCDIR "/sal/qa/rtl/oustringbuffer/test_oustringbuffer_assign.cxx")
|
||||
|
Reference in New Issue
Block a user