[cfe-users] Trouble with clang::SourceManager and clang::ASTUnit

2016-12-12 Thread via cfe-users
Hi all, I'm writing an auto-completion plug-in for Sublime Text 3 with a compiled component in C++. The compiled component is written as a clang tool living in llvm/tools/clang/tools/ and it links with the clangFrontend library. The bridge between Sublime's Python interface and C++ is pybind1

[cfe-users] objc. __auto_type and nullablility inheritance.

2016-12-12 Thread Alfred Zien via cfe-users
Hi to everyone! I'm integrating __auto_type to project, and I faced with some weird issue. __auto_type doesn't inherit nullability nor ownership qualifiers, so if I write __weak Type* _Nonnull a = f(); __auto_type b = a; b will be just Type*, with strong ownership and __nullability_unspecified