summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-10-08 13:47:01 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-11-02 14:32:59 +0000
commit7156b6f84e9215b9c157ca57d3db02352d1e99bd (patch)
tree81fa3a508ae82b0b5fde4651b9866be9a9e66c24
parent0dbb12adf4d80bd2c886cf15fcf4af4fcbc52a04 (diff)
plugin: Add a definition for an exported function
-rw-r--r--clang-plugin/plugin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang-plugin/plugin.cpp b/clang-plugin/plugin.cpp
index 4130c8c..a76435a 100644
--- a/clang-plugin/plugin.cpp
+++ b/clang-plugin/plugin.cpp
@@ -353,6 +353,9 @@ X("tartan", "add attributes and warnings using GLib-specific metadata");
/* Register the path-dependent plugins with Clang. */
extern "C"
+void clang_registerCheckers (ento::CheckerRegistry &registry);
+
+extern "C"
void clang_registerCheckers (ento::CheckerRegistry &registry) {
registry.addChecker<GErrorChecker> ("tartan.GErrorChecker",
"Check GError API usage");