diff options
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/constparams.cxx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/compilerplugins/clang/constparams.cxx b/compilerplugins/clang/constparams.cxx index b5256401890c3..052e370c507dc 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); } |