clang 23.0.0git
SSAFBuiltinForceLinker.h File Reference

This file pulls in all built-in SSAF extractor and format registrations by referencing their anchor symbols, preventing the static linker from discarding the containing object files. More...

#include "BuiltinAnchorSources.def"

Go to the source code of this file.

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
namespace  clang::ssaf

Macros

#define ANCHOR(NAME)
#define ANCHOR(NAME)

Variables

static const int clang::ssaf::BuiltinAnchorDestination

Detailed Description

This file pulls in all built-in SSAF extractor and format registrations by referencing their anchor symbols, preventing the static linker from discarding the containing object files.

Include this header (with IWYU pragma: keep) in any translation unit that must guarantee these registrations are active — typically the entry point of a binary that uses clangScalableStaticAnalysisFrameworkCore.

Definition in file SSAFBuiltinForceLinker.h.

Macro Definition Documentation

◆ ANCHOR [1/2]

#define ANCHOR ( NAME)
Value:
extern volatile int NAME;

Definition at line 25 of file SSAFBuiltinForceLinker.h.

◆ ANCHOR [2/2]

#define ANCHOR ( NAME)
Value:
NAME,

Definition at line 25 of file SSAFBuiltinForceLinker.h.