search for: cindex

Displaying 20 results from an estimated 54 matches for "cindex".

Did you mean: index
2010 Mar 06
2
[LLVMdev] Cygwin patches for 2.7
...; > > > > clang fails with a dynamic linking problem. > > What's the problem? and if you would please file a bug that would be > awesome :) > > thanks! > > Eric, Neither Cygwin nor MinGW support Dynamic Linking. I am getting the following :- llvm[4]: Compiling CIndexer.cpp for Debug build (PIC) /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp: In member functi on 'const llvm::sys::Path& CIndexer::getClangPath()': /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: 'Dl_in fo' was not declared in this scope...
2010 Mar 06
0
[LLVMdev] Cygwin patches for 2.7
...nking problem. >> >> What's the problem? and if you would please file a bug that would be >> awesome :) >> >> thanks! >> >> Eric, > > Neither Cygwin nor MinGW support Dynamic Linking. I am getting the > following :- > > llvm[4]: Compiling CIndexer.cpp for Debug build (PIC) > /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp: In member > functi > on 'const llvm::sys::Path& CIndexer::getClangPath()': > /home/ang/svn/llvm-clang/tools/clang/tools/CIndex/CIndexer.cpp:64: error: > 'Dl_in > fo' w...
2010 Mar 06
1
[LLVMdev] Cygwin patches for 2.7
On 5 March 2010 22:09, Aaron Gray <aaronngray.lists at googlemail.com> wrote: > Thanks Chris. Built LLVM okay from SVN and am running 'make check' and > building LLVM-GCC, also will check whether clang builds on Cygwin too. > LLVM-GGC builds and installs okay using gcc-4.2.4 minimum. 'make check' runs okay too. clang fails with a dynamic linking problem. Aaron
2010 Mar 06
0
[LLVMdev] Cygwin patches for 2.7
On Mar 6, 2010, at 2:44 AM, Aaron Gray wrote: > > clang fails with a dynamic linking problem. What's the problem? and if you would please file a bug that would be awesome :) thanks! -eric
2016 Oct 21
4
llvm build failed on Fedora 24
...inja" ../llvm -DCMAKE_INSTALL_PREFIX=prefix=$INSTALL_PATH -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=On $ ninja-build -j 2 I have skipped libcxx and libcxxabi package. It shows below error, 00:04:23 [3261/3430] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexCXX.cpp.o 00:04:30 [3262/3430] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o 00:04:30 FAILED: tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o 00:04:30 /usr/bin/c++ -DCLANG_ENABLE_ARCMT -DCLANG_ENABLE_OBJC_REWRITER -DCLANG_ENABLE_STATIC_ANALYZER...
2009 Oct 07
0
[LLVMdev] patch for CIndex linakge error on Mingw, set the proper LINKER_LANGUAGE for CIndex and c-index-test
\tools\clang\tools\CIndex && D:\Tools\Building\cmake\bin\cmake.exe -E cmake_link_script CMakeFiles\CIndex.dir\link.txt --verbose=1 D:\Tools\Building\gcc\bin\g++.exe -shared -o ..\..\..\..\bin\libCIndex.dll -Wl,--out-implib,..\..\..\..\lib\libCIndex.dll.a -Wl,--major-image-version,0,--minor-image-version,0 CMakeFi...
2003 Nov 27
1
cclust - cindex - binary data
Hi, I'm trying to debug a function I wrote to calculate the cindex for a hierarchical tree. For this it is useful to compare my calculations with those in output from the clustindex function, in the cclust library. There's no way, however, to have the cindex value for a given output of the cclust function, as a NA value is always returned. This happens almost...
2010 Mar 06
2
[LLVMdev] Cygwin patches for 2.7
On Mar 6, 2010, at 3:49 AM, Aaron Gray wrote: > > I am hoping I can just not build the indexer and will see if I can get a patch together first for 2.7 before submitting a bug report if I have to. > > Okay here's a patch to no build the CIndexer on Cygwin and MinGW :- > > Index: tools/Makefile > =================================================================== > --- tools/Makefile (revision 97834) > +++ tools/Makefile (working copy) > @@ -10,4 +10,9 @@ > LEVEL := ../../.. > DIRS := driver CIndex c-index-test...
2012 Jun 24
2
[LLVMdev] [PATCH] cindex.py using find_library
Hello all, Is there a reason why the library location code in cindex py does not use find_library() to locate libclang, like in the attached patch? Without it there were problems locating a versioned libclang.so.1 file on Debian, for example. Cheers, Mihai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pi...
2012 Jun 25
0
[LLVMdev] [PATCH] cindex.py using find_library
On 06/25/2012 12:50 AM, Mihai Basa wrote: > Hello all, > > Is there a reason why the library location code in cindex py does not > use find_library() to locate libclang, like in the attached patch? > > Without it there were problems locating a versioned libclang.so.1 file > on Debian, for example. Hi Mihai, as this is a clang related question, I move your mail to the clang mailing list. To your pat...
2010 Mar 06
0
[LLVMdev] Cygwin patches for 2.7
...om> wrote: > On Mar 6, 2010, at 3:49 AM, Aaron Gray wrote: > > >> I am hoping I can just not build the indexer and will see if I can get a >> patch together first for 2.7 before submitting a bug report if I have to. >> > > Okay here's a patch to no build the CIndexer on Cygwin and MinGW :- > > Index: tools/Makefile > =================================================================== > --- tools/Makefile (revision 97834) > +++ tools/Makefile (working copy) > @@ -10,4 +10,9 @@ > LEVEL := ../../.. > DIRS := driver CIndex c-index-test &...
2013 Nov 12
1
syslinux ansi <-> vesa color mapping
...does but from VGA attributes on an as needed basis. I was thinking maybe I could find a way to bridge it so that csprint can switch from ANSI to the other color API that works if a compatible match can be found. In the mean time, I have prepared a simple patch that fixes a small bug in the existing cindex that ANSI uses. The cindex is currently uint8_t, which limits the colors VESA mode can use to 256 colors while the VESA uses attr_t, a uin16_t type. I have patched the ansi.h header to include the vesa header where this type is exposed and then change the cindex type to attr_t. This should mean the...
2012 Sep 13
1
[LLVMdev] Parsing C++ template parameters using cindex.py
Hi, I am parsing a C++ file using cindex.py and want to get the template parameters to a specific node. However, the tree seems to be different depending on if the template parameter is a struct/class or a simple type such as int or float. In the first case the template type is appended as a child to the VAR_DECL node (the TYPE_REF node s...
2013 Dec 10
0
[LLVMdev] libcang python bindings and working with macros question
...to look at the displayname also, as spelling won't match the macroname. """ for cursor in children: if cursor.spelling == spelling: return cursor if cursor.displayname == spelling: return cursor """ import scripts.clang.cindex as cindex from scripts.util import get_cursor index = cindex.Index.create() t = cindex.TranslationUnit tu = index.parse('blah.c',[ ] ,options=t.PARSE_DETAILED_PROCESSING_RECORD | t.PARSE_PRECOMPILED_PREAMBLE) cursor = tu.cursor z = get_cursor(cursor,'TESTB') fid = open('blah...
2013 Dec 11
0
[LLVMdev] libcang python bindings and working with macros question
...to look at the displayname also, as spelling won't match the macroname. """ for cursor in children: if cursor.spelling == spelling: return cursor if cursor.displayname == spelling: return cursor """ import scripts.clang.cindex as cindex from scripts.util import get_cursor index = cindex.Index.create() t = cindex.TranslationUnit tu = index.parse('blah.c',[ ] ,options=t.PARSE_DETAILED_PROCESSING_RECORD | t.PARSE_PRECOMPILED_PREAMBLE) cursor = tu.cursor z = get_cursor(cursor,'TESTB') fid = open('blah...
2013 Nov 21
1
[PATCH] suggestions for R-lang manual
...hD Candidate Princeton University -------------- next part -------------- Index: trunk/doc/manual/R-lang.texi =================================================================== --- trunk/doc/manual/R-lang.texi (revision 64277) +++ trunk/doc/manual/R-lang.texi (working copy) @@ -1064,7 +1064,7 @@ @cindex function @cindex function arguments Function calls can have @emph{tagged} (or @emph{named}) arguments, as in - at code{plot(x, y, pch = 3)} arguments without tags are known as + at code{plot(x, y, pch = 3)}. Arguments without tags are known as @emph{positional} since the function must distingui...
2013 Oct 19
2
[LLVMdev] Parsing C++ headers with Clang bindings for Python
...se a C++ header file (say, math.h) with the Clang bindings for Python. (Yes, I know math.h is technically a C header, but for my purposes I want to pretend that it is C++.) For some reason, Clang is able to parse the file as C, but not as C++. Here is an example session: >>> import clang.cindex >>> idx = clang.cindex.Index.create() >>> tu = idx.parse('/usr/include/math.h', ['-x', 'c++-header']) >>> c = tu.cursor >>> for d in c.get_children(): ... print d.kind, d.spelling ... CursorKind.TYPEDEF_DECL __int128_t CursorKind.TYPED...
2016 May 08
2
typedef not present in the python AST
Hello, I'm trying to use the python libclang bindings to write a C++ style-checker, and I'd like to detect all the typedefs to recommend switching to using. I'm using libclang 3.8, with the python bindings provided with it. When I parse a file with index = clang.cindex.Index.create() tu = index.parse(f, ['-x', 'c++', '-std=c++11', '-fsyntax-only', '-I', '.']) and then I display the node kinds of every node in the AST (recursively calling get_children() on every node), I get a node of type CursorKind.TYPEDEF_DECL, b...
2009 Oct 05
2
[LLVMdev] Hi, everyone, fail on building c-index-test
...cpp(cxx,c++) files). >> >> So cmake recognize it as pure C project, >> and so it's link options that resident in link.txt is >> /usr/bin/gcc CMakeFiles/c-index-test.dir/c-index-test.c.o - >> o ../../../../bin/c-index-test -rdynamic ../../../../lib/ >> libCIndex.so ../../../../lib/libclangIndex.a ../../../../lib/ >> libclangFrontend.a ../../../../lib/libclangSema.a ../../../../lib/ >> libclangAST.a ../../../../lib/libclangLex.a ../../../../lib/ >> libclangBasic.a ../../../../lib/libLLVMBitReader.a ../../../../lib/ >> libLLVMMC.a ../...
2013 Oct 20
1
[LLVMdev] Parsing C++ headers with Clang bindings for Python
...(say, math.h) with the Clang bindings for Python. (Yes, I know math.h is technically a C header, but for my purposes I want to pretend that it is C++.) For some reason, Clang is able to parse the file as C, but not as C++. > > Here is an example session: > > >>> import clang.cindex > >>> idx = clang.cindex.Index.create() > >>> tu = idx.parse('/usr/include/math.h', ['-x', 'c++-header']) > >>> c = tu.cursor > >>> for d in c.get_children(): > ... print d.kind, d.spelling > ... > CursorKind.TYPE...