summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/constparams.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-08-07 13:12:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-08-07 13:12:59 +0200
commit1ac8d90d84ac69c3617228fbfcb8789f295451d3 (patch)
treebe6e7a8517fd0640339e7ab24fe1f22f5e4f5fc0 /compilerplugins/clang/constparams.cxx
parent06e2246f1683fc862f40155ea4d68800c0fcfd9e (diff)
-Werror=unused-function
Change-Id: Ia98b64a5500b99c5a6f20c723d96d9c4686f3271
Diffstat (limited to 'compilerplugins/clang/constparams.cxx')
-rw-r--r--compilerplugins/clang/constparams.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx
index b5256401890c..052e370c507d 100644
--- a/compilerplugins/clang/constparams.cxx
+++ b/compilerplugins/clang/constparams.cxx
@@ -83,7 +83,6 @@ public:
private:
bool checkIfCanBeConst(const Stmt*, const ParmVarDecl*);
bool isPointerOrReferenceToConst(const QualType& qt);
- StringRef getFilename(const SourceLocation& loc);
std::unordered_set<const ParmVarDecl*> interestingSet;
std::unordered_map<const ParmVarDecl*, const FunctionDecl*> parmToFunction;
@@ -488,13 +487,6 @@ bool ConstParams::isPointerOrReferenceToConst(const QualType& qt) {
return false;
}
-StringRef ConstParams::getFilename(const SourceLocation& loc)
-{
- SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(loc);
- StringRef name { compiler.getSourceManager().getFilename(spellingLocation) };
- return name;
-}
-
loplugin::Plugin::Registration< ConstParams > X("constparams", false);
}