summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/postfixincrementfix.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-02 17:45:18 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-02 22:59:44 +0100
commita7c3adb773e5b69601716bda181cc481090a4d59 (patch)
tree1ffbb7bb5863a316058553ba941be5b9facc7e1b /compilerplugins/clang/postfixincrementfix.cxx
parentb8f932b6a5c6ace05df975f82e682f10804dad5d (diff)
avoid having to manuall modify sources when adding a new clang plugin
Now each one registers in its .cxx file. Change-Id: I811c0d4400c2bdccc1c287269378d7e8ad8743ce
Diffstat (limited to 'compilerplugins/clang/postfixincrementfix.cxx')
-rw-r--r--compilerplugins/clang/postfixincrementfix.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/postfixincrementfix.cxx b/compilerplugins/clang/postfixincrementfix.cxx
index bfaf77cefa6c..2f474761830f 100644
--- a/compilerplugins/clang/postfixincrementfix.cxx
+++ b/compilerplugins/clang/postfixincrementfix.cxx
@@ -162,4 +162,6 @@ bool PostfixIncrementFix::shouldDoChange( const Expr* operand )
}
}
+static Plugin::Registration< PostfixIncrementFix > X( "postfixincrementfix" );
+
} // namespace