It sounds like you want the DeclContext. Use the function
Decl::getDeclContext() to get a DeclContext pointer. See
http://clang.llvm.org/doxygen/classclang_1_1DeclContext.html for details
about DeclContext. DeclContext::isTranslationUnit() for globals and
DeclContext::isFunctionOrMethod() for fu
Remove '-nobuiltininc' and substitute '-nostdinc'. That's in addition to
'-nostdinc++'
On Fri, Nov 11, 2016 at 11:00 AM, Emilio Pombo via cfe-users <
cfe-users@lists.llvm.org> wrote:
> Hi,
>
> I want to make clang parser to avoid all default and builtin include path
> in my system (Ubuntu 14.04.
Hi,
I want to make clang parser to avoid all default and builtin include path
in my system (Ubuntu 14.04.5 LTS) for lib C and C++ stl (GNU, LLVM or
whatever). I'm using the two most canonical options for doing that (I
think): -*nobuiltininc* and -*nostdinc++*, also tried to change some roots
or pr
Hi,
How can I find the parent of a VarDecl? The scope it is in. E.g.
function/method or a global.
Folkert van Heusden
___
cfe-users mailing list
cfe-users@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users