summaryrefslogtreecommitdiff
path: root/LiteEditor/clang_compilation_db_thread.h
diff options
context:
space:
mode:
authorJames Cowgill <james410@cowgill.org.uk>2014-03-21 12:42:00 +0000
committerJames Cowgill <james410@cowgill.org.uk>2014-03-21 12:42:00 +0000
commit01b494f950c9a63763683747ca330a2c70855f0f (patch)
tree00faa33f79482dc7d19db1b06e189e7760477a75 /LiteEditor/clang_compilation_db_thread.h
parenta00e9147b0128de0375a207b4f81494e7a0681d4 (diff)
Imported Upstream version 5.4+dfsg
Diffstat (limited to 'LiteEditor/clang_compilation_db_thread.h')
-rw-r--r--LiteEditor/clang_compilation_db_thread.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/LiteEditor/clang_compilation_db_thread.h b/LiteEditor/clang_compilation_db_thread.h
new file mode 100644
index 00000000..4757967f
--- /dev/null
+++ b/LiteEditor/clang_compilation_db_thread.h
@@ -0,0 +1,51 @@
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+//
+// copyright : (C) 2013 by Eran Ifrah
+// file name : clang_compilation_db_thread.h
+//
+// -------------------------------------------------------------------------
+// A
+// _____ _ _ _ _
+// / __ \ | | | | (_) |
+// | / \/ ___ __| | ___| | _| |_ ___
+// | | / _ \ / _ |/ _ \ | | | __/ _ )
+// | \__/\ (_) | (_| | __/ |___| | || __/
+// \____/\___/ \__,_|\___\_____/_|\__\___|
+//
+// F i l e
+//
+// This program 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 2 of the License, or
+// (at your option) any later version.
+//
+//////////////////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef CLANGCOMPILATIONDBTHREAD_H
+#define CLANGCOMPILATIONDBTHREAD_H
+
+#if HAS_LIBCLANG
+
+#include <wx/string.h>
+#include <wx/thread.h>
+
+class ClangCompilationDbThread : public wxThread
+{
+ wxString m_dbfile;
+
+public:
+ ClangCompilationDbThread(const wxString &filename);
+ virtual ~ClangCompilationDbThread();
+
+public:
+ virtual void* Entry();
+ void Start() {
+ Create();
+ Run();
+ }
+};
+#endif // HAS_LIBCLANG
+
+#endif // CLANGCOMPILATIONDBTHREAD_H