mirror of
https://github.com/ptitSeb/box64.git
synced 2026-11-09 12:21:28 -10:00
22 lines
543 B
C++
22 lines
543 B
C++
#pragma once
|
|
#include <clang/AST/Decl.h>
|
|
#include <clang/AST/Type.h>
|
|
#include <clang/Tooling/Tooling.h>
|
|
#include <clang/AST/RecordLayout.h>
|
|
#include <clang/AST/Decl.h>
|
|
|
|
#include <llvm/ADT/Triple.h>
|
|
#include <llvm/Support/Casting.h>
|
|
|
|
#include <cstddef>
|
|
#include <cstring>
|
|
#include <iostream>
|
|
|
|
static const clang::Type* StripTypedef(clang::QualType type) {
|
|
if (type->isTypedefNameType()) {
|
|
return StripTypedef(type->getAs<clang::TypedefType>()->getDecl()->getUnderlyingType());
|
|
} else {
|
|
return type.getTypePtr();
|
|
}
|
|
}
|