Clang Project

clang_source_code/lib/StaticAnalyzer/Core/TaintManager.cpp
1//== TaintManager.cpp ------------------------------------------ -*- 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#include "clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h"
10
11using namespace clang;
12using namespace ento;
13
14void *ProgramStateTrait<TaintMap>::GDMIndex() {
15  static int index = 0;
16  return &index;
17}
18
19void *ProgramStateTrait<DerivedSymTaint>::GDMIndex() {
20  static int index;
21  return &index;
22}
23
clang::ento::ProgramStateTrait::GDMIndex
clang::ento::ProgramStateTrait::GDMIndex