clang  10.0.0svn
Classes | Namespaces | Typedefs | Functions | Variables
Taint.h File Reference
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
Include dependency graph for Taint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::ento::taint::TaintBugVisitor
 The bug visitor prints a diagnostic message at the location where a given variable was tainted. More...
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::ento
 
 clang::ento::taint
 

Typedefs

using clang::ento::taint::TaintTagType = unsigned
 The type of taint, which helps to differentiate between different types of taint. More...
 

Functions

LLVM_NODISCARD ProgramStateRef clang::ento::taint::addTaint (ProgramStateRef State, const Stmt *S, const LocationContext *LCtx, TaintTagType Kind=TaintTagGeneric)
 Create a new state in which the value of the statement is marked as tainted. More...
 
LLVM_NODISCARD ProgramStateRef clang::ento::taint::addTaint (ProgramStateRef State, SVal V, TaintTagType Kind=TaintTagGeneric)
 Create a new state in which the value is marked as tainted. More...
 
LLVM_NODISCARD ProgramStateRef clang::ento::taint::addTaint (ProgramStateRef State, SymbolRef Sym, TaintTagType Kind=TaintTagGeneric)
 Create a new state in which the symbol is marked as tainted. More...
 
LLVM_NODISCARD ProgramStateRef clang::ento::taint::addTaint (ProgramStateRef State, const MemRegion *R, TaintTagType Kind=TaintTagGeneric)
 Create a new state in which the pointer represented by the region is marked as tainted. More...
 
LLVM_NODISCARD ProgramStateRef clang::ento::taint::addPartialTaint (ProgramStateRef State, SymbolRef ParentSym, const SubRegion *SubRegion, TaintTagType Kind=TaintTagGeneric)
 Create a new state in a which a sub-region of a given symbol is tainted. More...
 
bool clang::ento::taint::isTainted (ProgramStateRef State, const Stmt *S, const LocationContext *LCtx, TaintTagType Kind=TaintTagGeneric)
 Check if the statement has a tainted value in the given state. More...
 
bool clang::ento::taint::isTainted (ProgramStateRef State, SVal V, TaintTagType Kind=TaintTagGeneric)
 Check if the value is tainted in the given state. More...
 
bool clang::ento::taint::isTainted (ProgramStateRef State, SymbolRef Sym, TaintTagType Kind=TaintTagGeneric)
 Check if the symbol is tainted in the given state. More...
 
bool clang::ento::taint::isTainted (ProgramStateRef State, const MemRegion *Reg, TaintTagType Kind=TaintTagGeneric)
 Check if the pointer represented by the region is tainted in the given state. More...
 
void clang::ento::taint::printTaint (ProgramStateRef State, raw_ostream &Out, const char *nl="\, const char *sep="")
 
LLVM_DUMP_METHOD void clang::ento::taint::dumpTaint (ProgramStateRef State)
 

Variables

static constexpr TaintTagType clang::ento::taint::TaintTagGeneric = 0