[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    [cfe-dev] Fwd: Problem wtih clang_formatDiagnostic call from python bindings
From:       Guilherme <guibufolo+llvm () gmail ! com>
Date:       2015-01-28 14:52:07
Message-ID: CAMDzUtyorQb9RVCfzJBe8OcBK2_uP2HFg8L6aZwctrQJV1_gHg () mail ! gmail ! com
[Download RAW message or body]

Hello

I just updated my git repo to release_36 and was able to successfully build it.
To my python bindings I added to class Diagnostic:

+     @property
+    def format(self, options=-1):
+        if options == -1:
+            options = conf.lib.clang_defaultDiagnosticDisplayOptions()
+
+        return conf.lib.clang_formatDiagnostic(self, options)

This used to work without a problem in 3.4.

Now i get:

    ctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>:
Don't know how to convert parameter 1

I looked the declarations up in git with blame and the
CIndexDiagnostic.cpp file has not changed since 2010 for those
declarations.

What am i missing?

Thank you
_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic