Skip to content

Commit 3ba07e5

Browse files
committed
add py bindings
1 parent c5b34e0 commit 3ba07e5

File tree

10 files changed

+3422
-0
lines changed

10 files changed

+3422
-0
lines changed

py/clang/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.swp
2+
*.swo
3+
*.pyc
4+
__pycache__

py/clang/LICENSE.TXT

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
==============================================================================
2+
LLVM Release License
3+
==============================================================================
4+
University of Illinois/NCSA
5+
Open Source License
6+
7+
Copyright (c) 2007-2012 University of Illinois at Urbana-Champaign.
8+
All rights reserved.
9+
10+
Developed by:
11+
12+
LLVM Team
13+
14+
University of Illinois at Urbana-Champaign
15+
16+
http://llvm.org
17+
18+
Permission is hereby granted, free of charge, to any person obtaining a copy of
19+
this software and associated documentation files (the "Software"), to deal with
20+
the Software without restriction, including without limitation the rights to
21+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
22+
of the Software, and to permit persons to whom the Software is furnished to do
23+
so, subject to the following conditions:
24+
25+
* Redistributions of source code must retain the above copyright notice,
26+
this list of conditions and the following disclaimers.
27+
28+
* Redistributions in binary form must reproduce the above copyright notice,
29+
this list of conditions and the following disclaimers in the
30+
documentation and/or other materials provided with the distribution.
31+
32+
* Neither the names of the LLVM Team, University of Illinois at
33+
Urbana-Champaign, nor the names of its contributors may be used to
34+
endorse or promote products derived from this Software without specific
35+
prior written permission.
36+
37+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
39+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40+
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
43+
SOFTWARE.
44+
45+
==============================================================================
46+
The LLVM software contains code written by third parties. Such software will
47+
have its own individual LICENSE.TXT file in the directory in which it appears.
48+
This file will describe the copyrights, license, and restrictions which apply
49+
to that code.
50+
51+
The disclaimer of warranty in the University of Illinois Open Source License
52+
applies to all code in the LLVM Distribution, and nothing in any of the
53+
other licenses gives permission to use the names of the LLVM Team or the
54+
University of Illinois to endorse or promote products derived from this
55+
Software.
56+
57+
The following pieces of software have additional or alternate copyrights,
58+
licenses, and/or restrictions:
59+
60+
Program Directory
61+
------- ---------
62+
<none yet>
63+

py/clang/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is simply clang's Python bindings (clang.cindex) ported to Python 3. Please see http://llvm.org/svn/llvm-project/cfe/trunk/bindings/python/ for the original project.
2+

py/clang/__init__.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#===- __init__.py - Clang Python Bindings --------------------*- python -*--===#
2+
#
3+
# The LLVM Compiler Infrastructure
4+
#
5+
# This file is distributed under the University of Illinois Open Source
6+
# License. See LICENSE.TXT for details.
7+
#
8+
#===------------------------------------------------------------------------===#
9+
10+
r"""
11+
Clang Library Bindings
12+
======================
13+
14+
This package provides access to the Clang compiler and libraries.
15+
16+
The available modules are:
17+
18+
cindex
19+
20+
Bindings for the Clang indexing library.
21+
"""
22+
23+
__all__ = ['cindex']
24+

0 commit comments

Comments
 (0)