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:
@@ -176,7 +176,7 @@ MyFuncInfo MethodCycles::niceName(const FunctionDecl* functionDecl)
|
||||
std::string MethodCycles::toString(SourceLocation loc)
|
||||
{
|
||||
SourceLocation expansionLoc = compiler.getSourceManager().getExpansionLoc(loc);
|
||||
StringRef name = getFileNameOfSpellingLoc(expansionLoc);
|
||||
StringRef name = getFilenameOfLocation(expansionLoc);
|
||||
std::string sourceLocation
|
||||
= std::string(name.substr(strlen(SRCDIR) + 1)) + ":"
|
||||
+ std::to_string(compiler.getSourceManager().getSpellingLineNumber(expansionLoc));
|
||||
|
Reference in New Issue
Block a user