Linux Audio

Check our new training course

Loading...
v4.10.11
 
 1#include "clang/Basic/VirtualFileSystem.h"
 2#include "clang/Driver/Driver.h"
 3#include "clang/Frontend/TextDiagnosticPrinter.h"
 4#include "llvm/ADT/IntrusiveRefCntPtr.h"
 5#include "llvm/Support/ManagedStatic.h"
 6#include "llvm/Support/raw_ostream.h"
 7
 8using namespace clang;
 9using namespace clang::driver;
10
11int main()
12{
13	IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
14	IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
15
16	DiagnosticsEngine Diags(DiagID, &*DiagOpts);
17	Driver TheDriver("test", "bpf-pc-linux", Diags);
18
19	llvm::llvm_shutdown();
20	return 0;
21}
v5.4
 1// SPDX-License-Identifier: GPL-2.0
 2#include "clang/Basic/VirtualFileSystem.h"
 3#include "clang/Driver/Driver.h"
 4#include "clang/Frontend/TextDiagnosticPrinter.h"
 5#include "llvm/ADT/IntrusiveRefCntPtr.h"
 6#include "llvm/Support/ManagedStatic.h"
 7#include "llvm/Support/raw_ostream.h"
 8
 9using namespace clang;
10using namespace clang::driver;
11
12int main()
13{
14	IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
15	IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts = new DiagnosticOptions();
16
17	DiagnosticsEngine Diags(DiagID, &*DiagOpts);
18	Driver TheDriver("test", "bpf-pc-linux", Diags);
19
20	llvm::llvm_shutdown();
21	return 0;
22}