clang 23.0.0git
SSAFOptions.h
Go to the documentation of this file.
1//===- SSAFOptions.h --------------------------------------------*- 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#ifndef LLVM_CLANG_FRONTEND_SSAFOPTIONS_H
10#define LLVM_CLANG_FRONTEND_SSAFOPTIONS_H
11
12#include "llvm/Support/Compiler.h"
13#include <string>
14#include <vector>
15
16namespace clang::ssaf {
17
19public:
20 /// List of SSAF extractors to enable.
21 /// Controlled by: --ssaf-extract-summaries
22 std::vector<std::string> ExtractSummaries;
23
24 /// The TU summary output file with the file extension representing the
25 /// serialization format.
26 /// Controlled by: --ssaf-tu-summary-file
27 std::string TUSummaryFile;
28
29 /// Stable identifier used as the name of the `CompilationUnit`
30 /// `BuildNamespace` of every produced TU summary.
31 /// Controlled by: --ssaf-compilation-unit-id
32 std::string CompilationUnitId;
33
34 /// Show the list of available SSAF summary extractors and exit.
35 /// Controlled by: --ssaf-list-extractors
36 LLVM_PREFERRED_TYPE(bool)
38
39 /// Show the list of available SSAF serialization formats and exit.
40 /// Controlled by: --ssaf-list-formats
41 LLVM_PREFERRED_TYPE(bool)
42 unsigned ShowFormats : 1;
43
45 ShowExtractors = false;
46 ShowFormats = false;
47 };
48};
49
50} // namespace clang::ssaf
51
52#endif // LLVM_CLANG_FRONTEND_SSAFOPTIONS_H
std::string CompilationUnitId
Stable identifier used as the name of the CompilationUnit BuildNamespace of every produced TU summary...
Definition SSAFOptions.h:32
unsigned ShowExtractors
Show the list of available SSAF summary extractors and exit.
Definition SSAFOptions.h:37
std::vector< std::string > ExtractSummaries
List of SSAF extractors to enable.
Definition SSAFOptions.h:22
std::string TUSummaryFile
The TU summary output file with the file extension representing the serialization format.
Definition SSAFOptions.h:27
unsigned ShowFormats
Show the list of available SSAF serialization formats and exit.
Definition SSAFOptions.h:42