diff options
author | Sergio Martins <smartins@kde.org> | 2019-05-13 10:08:28 +0100 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2019-05-13 10:08:28 +0100 |
commit | 73f8700b4b2a4c191d5488e2dc209aa227798b00 (patch) | |
tree | b9a09c19053914193b50ba71b2dd81534f40b66a | |
parent | 72fd4672b3c0be4c0c46eb0e08f4a0216af7ec1a (diff) |
Remove unused ClazyFixItOptions
-rw-r--r-- | src/ClazyContext.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/ClazyContext.cpp b/src/ClazyContext.cpp index e29d4ad0..33d7dccf 100644 --- a/src/ClazyContext.cpp +++ b/src/ClazyContext.cpp @@ -35,31 +35,6 @@ using namespace std; using namespace clang; -class ClazyFixItOptions - : public FixItOptions -{ -public: - ClazyFixItOptions(const ClazyFixItOptions &other) = delete; - ClazyFixItOptions() - { - if (const char *suffix = getenv("CLAZY_FIXIT_SUFFIX")) - m_suffix = suffix; - - InPlace = m_suffix.empty(); - FixWhatYouCan = true; - FixOnlyWarnings = true; - Silent = false; - } - - std::string RewriteFilename(const std::string &filename, int &fd) override - { - fd = -1; - return InPlace ? filename - : filename + m_suffix; - } - - std::string m_suffix; -}; ClazyContext::ClazyContext(const clang::CompilerInstance &compiler, const string &headerFilter, const string &ignoreDirs, |