[llvm-bugs] [Bug 48831] New: mac libclang unknown type name 'size_t'

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 20 22:12:24 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=48831

            Bug ID: 48831
           Summary: mac libclang unknown type name 'size_t'
           Product: clang
           Version: 10.0
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: setimets at gmail.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Created attachment 24404
  --> https://bugs.llvm.org/attachment.cgi?id=24404&action=edit
My entry code block

I'm using the libclang for my cpp reflection project. I input the header file
targets to clang_parseTranslationUnit. 

When I use it on win then it's alright but on the mac, clang diagnostics prints
out the error like "unknown type name 'size_t'" and "error: 'stdio.h' file not
found". So I included  c++ header path of the installed clang at the command
line option but It still prints the same.
I don't know how can I fix it. help me.

I always thank you for your work.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210121/39710268/attachment.html>


More information about the llvm-bugs mailing list