clang API Documentation

Functions
SValBuilder.cpp File Reference
#include "clang/StaticAnalyzer/Core/PathSensitive/SValBuilder.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/ExprCXX.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/BasicValueFactory.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.h"
Include dependency graph for SValBuilder.cpp:

Go to the source code of this file.

Functions

static bool shouldBeModeledWithNoOp (ASTContext &Context, QualType ToTy, QualType FromTy)

Function Documentation

static bool shouldBeModeledWithNoOp ( ASTContext Context,
QualType  ToTy,
QualType  FromTy 
) [static]

Recursively check if the pointer types are equal modulo const, volatile, and restrict qualifiers. Also, assume that all types are similar to 'void'. Assumes the input types are canonical.

Definition at line 372 of file SValBuilder.cpp.

References clang::ASTContext::getUnqualifiedArrayType(), clang::Type::isVoidType(), clang::Qualifiers::removeCVRQualifiers(), and clang::ASTContext::UnwrapSimilarPointerTypes().

Referenced by clang::ento::SValBuilder::evalCast().