diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 08:15:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 08:51:07 +0200 |
commit | 40fd53a2383ba353054ed440c45f2319a9b8efef (patch) | |
tree | d0bc0d68101b51d11b70dc8e057bbb722b893911 /compilerplugins/clang/passstuffbyref.cxx | |
parent | 9d8d2e0787b8d866a651bcb9778393fb080ab6e8 (diff) |
loplugins: extract some common functionality
Change-Id: If470e1d9b481c9eda0829aa985152baf8fb46d7a
Diffstat (limited to 'compilerplugins/clang/passstuffbyref.cxx')
-rw-r--r-- | compilerplugins/clang/passstuffbyref.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compilerplugins/clang/passstuffbyref.cxx b/compilerplugins/clang/passstuffbyref.cxx index b1b3169f94c9..ad6c10018fdf 100644 --- a/compilerplugins/clang/passstuffbyref.cxx +++ b/compilerplugins/clang/passstuffbyref.cxx @@ -205,8 +205,7 @@ void PassStuffByRef::checkParams(const FunctionDecl * functionDecl) { } } // ignore stuff that forms part of the stable URE interface - if (isInUnoIncludeFile(compiler.getSourceManager().getSpellingLoc( - functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) { + if (isInUnoIncludeFile(functionDecl)) { return; } // these functions are passed as parameters to another function @@ -245,8 +244,7 @@ void PassStuffByRef::checkReturnValue(const FunctionDecl * functionDecl, const C } // ignore stuff that forms part of the stable URE interface - if (isInUnoIncludeFile(compiler.getSourceManager().getSpellingLoc( - functionDecl->getCanonicalDecl()->getNameInfo().getLoc()))) { + if (isInUnoIncludeFile(functionDecl)) { return; } loplugin::DeclCheck dc(functionDecl); |