clang 20.0.0git
Randstruct.h
Go to the documentation of this file.
1//===- Randstruct.h - Interfact for structure randomization -------*- C++ -*-=//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file contains the interface for Clang's structure field layout
10// randomization.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_RANDSTRUCT_H
15#define LLVM_CLANG_AST_RANDSTRUCT_H
16
17namespace llvm {
18template <typename T> class SmallVectorImpl;
19} // end namespace llvm
20
21namespace clang {
22
23class ASTContext;
24class Decl;
25class RecordDecl;
26
27namespace randstruct {
28
29bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD,
30 llvm::SmallVectorImpl<Decl *> &FinalOrdering);
31
32} // namespace randstruct
33} // namespace clang
34
35#endif // LLVM_CLANG_AST_RANDSTRUCT_H
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition: ASTContext.h:188
Represents a struct/union/class.
Definition: Decl.h:4148
bool randomizeStructureLayout(const ASTContext &Context, RecordDecl *RD, llvm::SmallVectorImpl< Decl * > &FinalOrdering)
Definition: Randstruct.cpp:173
The JSON file list parser is used to communicate input to InstallAPI.
Diagnostic wrappers for TextAPI types for error reporting.
Definition: Dominators.h:30