Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
harlanhaskins committed Jan 18, 2017
0 parents commit 5e48051
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import PackageDescription

let package = Package(
name: "cclang",
pkgConfig: "cclang"
)
4 changes: 4 additions & 0 deletions module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module cclang [system] {
header "shim.h"
export *
}
12 changes: 12 additions & 0 deletions shim.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <clang-c/Platform.h>

#ifdef I // For some reason this is defined
#undef I
#endif

#include <clang-c/Index.h>
#include <clang-c/BuildSystem.h>
#include <clang-c/CXErrorCode.h>
#include <clang-c/Documentation.h>
#include <clang-c/CXCompilationDatabase.h>
#include <clang-c/CXString.h>

0 comments on commit 5e48051

Please sign in to comment.