Lines Matching full:clang
5 * Inspired by clang example code:
6 * http://llvm.org/svn/llvm-project/cfe/trunk/examples/clang-interpreter/main.cpp
12 #include "clang/Basic/Version.h"
13 #include "clang/CodeGen/CodeGenAction.h"
14 #include "clang/Frontend/CompilerInvocation.h"
15 #include "clang/Frontend/CompilerInstance.h"
16 #include "clang/Frontend/TextDiagnosticPrinter.h"
17 #include "clang/Tooling/Tooling.h"
29 #include "clang.h"
30 #include "clang-c.h"
36 using namespace clang;
71 CompilerInstance Clang; in getModuleFromSource() local
72 Clang.createDiagnostics(); in getModuleFromSource()
75 Clang.setVirtualFileSystem(&*VFS); in getModuleFromSource()
77 Clang.createFileManager(&*VFS); in getModuleFromSource()
83 Clang.getDiagnostics()); in getModuleFromSource()
84 Clang.setInvocation(&*CI); in getModuleFromSource()
88 Clang.getDiagnostics())); in getModuleFromSource()
89 Clang.setInvocation(CI); in getModuleFromSource()
93 if (!Clang.ExecuteAction(*Act)) in getModuleFromSource()