clang 24.0.0git
ProgramState_Fwd.h
Go to the documentation of this file.
1//== ProgramState_Fwd.h - Incomplete declarations of ProgramState -*- 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_STATICANALYZER_CORE_PATHSENSITIVE_PROGRAMSTATE_FWD_H
10#define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_PROGRAMSTATE_FWD_H
11
12#include "clang/Basic/LLVM.h"
13#include "llvm/ADT/IntrusiveRefCntPtr.h"
14
15namespace clang {
16namespace ento {
17 class ProgramState;
19}
20}
21
22namespace llvm {
23 template <> struct IntrusiveRefCntPtrInfo<const clang::ento::ProgramState> {
24 // These are templates so that their bodies are only instantiated where
25 // ProgramState is complete, which lets them be inlined. Destroying a
26 // ProgramStateRef needs the complete type, including in a function that
27 // takes one by value, as the callee destroys the arguments in some ABIs.
28 template <typename T> static void retain(T *state) { state->retain(); }
29 template <typename T> static void release(T *state) { state->release(); }
30 };
31}
32
33namespace clang {
34namespace ento {
36}
37}
38
39#endif
40
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
ProgramState - This class encapsulates:
IntrusiveRefCntPtr< const ProgramState > ProgramStateRef
Top level wrappers for InstallAPI frontend operations.
Diagnostic wrappers for TextAPI types for error reporting.
Definition Dominators.h:30