summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/typedefparam.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-15 18:18:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-15 18:18:57 +0200
commit574db10513be6b25f24c8cab49cbc9e63aca87d3 (patch)
treef56f03a03a935daf09adf5c7a8540b12d37e6a29 /compilerplugins/clang/typedefparam.cxx
parent48480d4f19d2fb92ca4ae0527eec4753cdc439c0 (diff)
Revert "convert some plugins to use the sharedplugin infrastructure"
This reverts commit fc1b213d157afa57704cec5a0fb65ae8c11d7822. I didn't convert these correctly, the Traverse calls need adjusting.
Diffstat (limited to 'compilerplugins/clang/typedefparam.cxx')
-rw-r--r--compilerplugins/clang/typedefparam.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/compilerplugins/clang/typedefparam.cxx b/compilerplugins/clang/typedefparam.cxx
index 2c7031ff7af0..0b7a74ba1696 100644
--- a/compilerplugins/clang/typedefparam.cxx
+++ b/compilerplugins/clang/typedefparam.cxx
@@ -7,8 +7,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef LO_CLANG_SHARED_PLUGINS
-
#include <cassert>
#include <string>
#include <iostream>
@@ -33,7 +31,7 @@ public:
{
}
- void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
+ virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); }
bool VisitFunctionDecl(FunctionDecl const*);
bool VisitCXXMethodDecl(CXXMethodDecl const*);
@@ -323,10 +321,7 @@ static bool areTypesEqual(QualType lhs, QualType rhs)
return lhsType == rhsType;
}
-loplugin::Plugin::Registration<TypedefParam> typedefparam("typedefparam");
-
-} // namespace
-
-#endif // LO_CLANG_SHARED_PLUGINS
+loplugin::Plugin::Registration<TypedefParam> X("typedefparam", true);
+}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */