Clang trunk compat fix
Change-Id: Ic414ad0416e27e223ff702996b796b68d39709b9
This commit is contained in:
parent
229b8f9122
commit
466ee86cab
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <string>
|
||||
#include <set>
|
||||
|
||||
#include "compat.hxx"
|
||||
#include "plugin.hxx"
|
||||
|
||||
// Find places where we are returning a pointer to something, where we can be returning a reference.
|
||||
|
@ -56,7 +57,7 @@ bool ReturnByRef::VisitCXXMethodDecl(const CXXMethodDecl * functionDecl) {
|
|||
functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) {
|
||||
return true;
|
||||
}
|
||||
QualType t1 { functionDecl->getResultType() };
|
||||
QualType t1 { compat::getReturnType(*functionDecl) };
|
||||
if (!t1->isPointerType()) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue