llvm-project/clang/lib/StaticAnalyzer/Core/TaintManager.cpp

24 lines
641 B
C++
Raw Normal View History

//== TaintManager.cpp ------------------------------------------ -*- C++ -*--=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h"
using namespace clang;
using namespace ento;
void *ProgramStateTrait<TaintMap>::GDMIndex() {
static int index = 0;
return &index;
}
void *ProgramStateTrait<DerivedSymTaint>::GDMIndex() {
static int index;
return &index;
}