From b2b6b121951e18448e9dccfe1926de5619cbaebf Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 5 Aug 2012 14:24:15 -0700 Subject: [PATCH] Created c, objc & objcpp hooks that use cpp clang These hooks just create a ClangCompleter which is universal for these four languages. It can complete all of them. --- python/completers/c/hook.py | 24 ++++++++++++++++++++++++ python/completers/objc/hook.py | 24 ++++++++++++++++++++++++ python/completers/objcpp/hook.py | 24 ++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 python/completers/c/hook.py create mode 100644 python/completers/objc/hook.py create mode 100644 python/completers/objcpp/hook.py diff --git a/python/completers/c/hook.py b/python/completers/c/hook.py new file mode 100644 index 00000000..3307a130 --- /dev/null +++ b/python/completers/c/hook.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# +# Copyright (C) 2011, 2012 Strahinja Val Markovic +# +# This file is part of YouCompleteMe. +# +# YouCompleteMe is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# YouCompleteMe is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with YouCompleteMe. If not, see . + +from completers.cpp.clang_completer import ClangCompleter + +def GetCompleter(): + return ClangCompleter() + diff --git a/python/completers/objc/hook.py b/python/completers/objc/hook.py new file mode 100644 index 00000000..3307a130 --- /dev/null +++ b/python/completers/objc/hook.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# +# Copyright (C) 2011, 2012 Strahinja Val Markovic +# +# This file is part of YouCompleteMe. +# +# YouCompleteMe is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# YouCompleteMe is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with YouCompleteMe. If not, see . + +from completers.cpp.clang_completer import ClangCompleter + +def GetCompleter(): + return ClangCompleter() + diff --git a/python/completers/objcpp/hook.py b/python/completers/objcpp/hook.py new file mode 100644 index 00000000..3307a130 --- /dev/null +++ b/python/completers/objcpp/hook.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python +# +# Copyright (C) 2011, 2012 Strahinja Val Markovic +# +# This file is part of YouCompleteMe. +# +# YouCompleteMe is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# YouCompleteMe is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with YouCompleteMe. If not, see . + +from completers.cpp.clang_completer import ClangCompleter + +def GetCompleter(): + return ClangCompleter() +