clang
23.0.0git
include
clang
ScalableStaticAnalysisFramework
SSAFBuiltinForceLinker.h
Go to the documentation of this file.
1
//===- SSAFBuiltinForceLinker.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
/// \file
10
/// This file pulls in all built-in SSAF extractor and format registrations
11
/// by referencing their anchor symbols, preventing the static linker from
12
/// discarding the containing object files.
13
///
14
/// Include this header (with IWYU pragma: keep) in any translation unit that
15
/// must guarantee these registrations are active — typically the entry point
16
/// of a binary that uses clangScalableStaticAnalysisFrameworkCore.
17
///
18
//===----------------------------------------------------------------------===//
19
20
#ifndef LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SSAFBUILTINFORCELINKER_H
21
#define LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SSAFBUILTINFORCELINKER_H
22
23
// This anchor is used to force the linker to link the JSONFormat registration.
24
extern
volatile
int
SSAFJSONFormatAnchorSource
;
25
[[maybe_unused]]
static
int
SSAFJSONFormatAnchorDestination
=
26
SSAFJSONFormatAnchorSource
;
27
28
#endif
// LLVM_CLANG_SCALABLESTATICANALYSISFRAMEWORK_SSAFBUILTINFORCELINKER_H
SSAFJSONFormatAnchorSource
volatile int SSAFJSONFormatAnchorSource
Definition
JSONFormatImpl.cpp:15
SSAFJSONFormatAnchorDestination
static int SSAFJSONFormatAnchorDestination
Definition
SSAFBuiltinForceLinker.h:25
Generated on
for clang by
1.14.0