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

List:       cfe-dev
Subject:    [cfe-dev] libClang C++ method qualifier problems
From:       barbara via cfe-dev <cfe-dev () lists ! llvm ! org>
Date:       2016-03-28 7:20:32
Message-ID: 56F8E93E.3090100 () copperspice ! com
[Download RAW message or body]

Last month I asked a question about locating the C++ standard headers on 
Windows. Moving to clang 3.7.1 helped greatly in solving this issue.

At this point we have the AST and a visitor callback.  We can navigate 
through a good deal of the clang parsing however we are running into 
numerous problems. Given cursor kind is equal to CXCursor_CXXMethod, the 
following does not work for a volatile qualified method.

CXType type  = clang_getCursorType(cursor);
bool isVolatile = clang_isVolatileQualifiedType(type);

isVolatile is always false.

We are running into similar issues with final, default, delete, 
explicit, inline, and noexcept.

If anyone has any working code or suggestions for detecting these 
keywords using Cursors, your help would be greatly appreciated.

Thanks,

Barbara

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

_______________________________________________
cfe-dev mailing list
cfe-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/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