Displaying 20 results from an estimated 140 matches similar to: "typedef not present in the python AST"
2013 Oct 19
2
[LLVMdev] Parsing C++ headers with Clang bindings for Python
I'd like to parse 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 =
2013 Oct 19
0
[LLVMdev] Parsing C++ headers with Clang bindings for Python
Answering my own question:
On Fri, Oct 18, 2013 at 8:51 PM, Elliott Slaughter <
elliottslaughter at gmail.com> wrote:
> I'd like to parse 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
2013 Oct 20
1
[LLVMdev] Parsing C++ headers with Clang bindings for Python
Hi Elliott,
On Oct 18, 2013, at 9:29 PM, Elliott Slaughter <elliottslaughter at gmail.com> wrote:
> Answering my own question:
>
> On Fri, Oct 18, 2013 at 8:51 PM, Elliott Slaughter <elliottslaughter at gmail.com> wrote:
> I'd like to parse 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
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 seen in
the example below), but this is not the case with
2006 Nov 23
0
[751] trunk/wxruby2/swig/typedefs.i: Added wxUint32 typedef
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Nov 22
0
[ wxruby-Bugs-6825 ] Missing typedef for Wx::FindReplaceData constructor
Bugs item #6825, was opened at 2006-11-22 18:19
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=218&aid=6825&group_id=35
Category: Incorrect behavior
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Kevin Smith (qualitycode)
Summary: Missing typedef for Wx::FindReplaceData constructor
Initial Comment:
2004 Oct 14
0
[LLVMdev] Removed unnecessary typedef in include/llvm/Analysis/IntervalIterator.h
The typedef of _BB was causing problems with Visual Studio, it looks
like something else is #define'ing _BB so I get a compilation error.
Since it seems nothing is using this typedef, I just removed it - here
is the patch.
m.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL:
2009 Oct 02
2
[LLVMdev] typedef struct
Hi all,
If I have a C struct declaration like this:
typedef struct typeA {...} typeB;
In the type symbol table generated should it contain an entry for struct.typeA
or struct.typeB? I seem to have seen both cases using the same llvm toolchain
so I just wonder if I have done something wrong.
Thanks,
Alvin
2009 Oct 03
0
[LLVMdev] typedef struct
Hi Alvin,
> If I have a C struct declaration like this:
>
> typedef struct typeA {...} typeB;
>
> In the type symbol table generated should it contain an entry for struct.typeA
> or struct.typeB? I seem to have seen both cases using the same llvm toolchain
> so I just wonder if I have done something wrong.
it doesn't matter what the name is since it has no effect on
2009 Oct 04
1
[LLVMdev] typedef struct
Hi Duncan,
Actually what I am doing is matching up each Type with its corresponding debug
info. I have checked that the debug info generated is consistent (i.e., typeA
is recorded as a derived type from composite type typeB in my example), but I
have seen cases where the name recorded in the Type object is typeA and
sometimes typeB, that's why I am confused.
Alvin
Duncan Sands wrote:
2011 Jun 30
1
[LLVMdev] sparse typedef int v8qi __attribute__ ((mode(V8QI))) warning
While solving a clang build issue with netpbm10 on fink darwin11, I noticed that
clang seems to provide poor error messages compared to llvm-gcc. For llvm-gcc, we get
the very helpful warning...
libpbm3.c: In function 'packBitsWithMmxSse':
libpbm3.c:120: warning: specifying vector types with __attribute__ ((mode)) is deprecated
libpbm3.c:120: warning: use __attribute__ ((vector_size))
2018 Apr 24
0
[PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t
On Mon, Apr 23, 2018 at 12:49:24PM +0200, Gerd Hoffmann wrote:
> On Tue, Apr 17, 2018 at 07:08:44PM +0530, Souptick Joarder wrote:
> > Use new return type vm_fault_t for fault handler. For
> > now, this is just documenting that the function returns
> > a VM_FAULT value rather than an errno. Once all instances
> > are converted, vm_fault_t will become a distinct type.
2018 May 14
0
[PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t
Hi,
> > So my expectation that a backmerge happens anyway after -rc1/2 is in
> > line with reality, it is just to be delayed this time. I'll stay
> > tuned ;)
>
> Is this patch already merged in drm-misc-next tree ?
Pushed now.
cheers,
Gerd
2016 Sep 07
3
typedef or using in C++ code
Hi!
What should be used for type declarations: typedef or using? typedef
is there because of historical reasons, but LLVM code based is C++11
now.
LLVM Coding Standards are not clear on this matter.
Eugene.
Clang-tidy has modernize-use-using, but fix-it functionality is not
perfect (https://llvm.org/bugs/show_bug.cgi?id=28334).
2004 Aug 06
0
hmm, howabout a typedef instead of void *
Hey,
can we make the pointers to the encoder and decoder state variables
somewhat more strongly typed? ;) I made a mistake where I basically
wrote
speex_decode(&st, ...
instead of
speex_decode(st, ...
That is why my decoder blew up all the time. The compiler wouldn't
complain. I suspected a corrupt speex bitstream, a corrupted stack
frame, etc... So much time wasted because of an
2008 Mar 19
1
Problem in using typedef with c++
Hi
My code is as follows :-
example.h
#include"iostream.h"
using namespace std;
typedef int MYINT;
void sum(MYINT a, MYINT b);
example.cpp
#include"example.h"
void sum(MYINT a, MYINT b)
{
MYINT c;
c=a +b;
cout<<c;
}
example.i
%module example
%{
#include"example.h"
extern void sum(MYINT a, MYINT b);
%}
#include "example.h"
2006 Oct 31
0
1183369 scsi_types.h: remove non-STDC typedef of opaque_t as a char *
Author: cth
Repository: /hg/zfs-crypto/gate
Revision: e20f560984a502dbdb00d562c0d053cf86afabe1
Log message:
1183369 scsi_types.h: remove non-STDC typedef of opaque_t as a char *
Files:
update: usr/src/uts/common/sys/scsi/conf/autoconf.h
update: usr/src/uts/common/sys/scsi/conf/device.h
update: usr/src/uts/common/sys/scsi/impl/services.h
update: usr/src/uts/common/sys/scsi/scsi_ctl.h
update:
2018 Apr 23
3
[PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t
On Tue, Apr 17, 2018 at 07:08:44PM +0530, Souptick Joarder wrote:
> Use new return type vm_fault_t for fault handler. For
> now, this is just documenting that the function returns
> a VM_FAULT value rather than an errno. Once all instances
> are converted, vm_fault_t will become a distinct type.
>
> Reference id -> 1c8f422059ae ("mm: change return type to
>
2018 Apr 23
3
[PATCH] gpu: drm: qxl: Adding new typedef vm_fault_t
On Tue, Apr 17, 2018 at 07:08:44PM +0530, Souptick Joarder wrote:
> Use new return type vm_fault_t for fault handler. For
> now, this is just documenting that the function returns
> a VM_FAULT value rather than an errno. Once all instances
> are converted, vm_fault_t will become a distinct type.
>
> Reference id -> 1c8f422059ae ("mm: change return type to
>
2008 Nov 19
1
[LLVMdev] Why is "typedef boost::shared_ptr<MyClass> MyClass_ptr" named "struct.boost::MyClass_ptr" by llvm-g++?
Hi,
In the code below, MyNamespace::MyClass_ptr will be named
"struct.boost::MyClass_ptr" by llvm-g++, and not
"struct.MyNamespace::MyClass_ptr" as I expected.
I observed this with the real boost::shared_ptr but used the code below
(also attached as structnametest1.cc) on the demo page
(http://llvm.org/demo/index.cgi) to reproduce the behavior.
When I extended my test code