clang 20.0.0git
|
#include "clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugReporter.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Functions | |
static bool | IsLLVMStringRef (QualType T) |
static bool | InNamespace (const Decl *D, StringRef NS) |
Check whether the declaration is semantically inside the top-level namespace named by ns. | |
static bool | IsStdString (QualType T) |
static bool | IsClangType (const RecordDecl *RD) |
static bool | IsClangDecl (const RecordDecl *RD) |
static bool | IsClangStmt (const RecordDecl *RD) |
static bool | IsClangAttr (const RecordDecl *RD) |
static bool | IsStdVector (QualType T) |
static bool | IsSmallVector (QualType T) |
static void | CheckStringRefAssignedTemporary (const Decl *D, BugReporter &BR, const CheckerBase *Checker) |
static bool | AllocatesMemory (QualType T) |
static bool | IsPartOfAST (const CXXRecordDecl *R) |
static void | CheckASTMemory (const CXXRecordDecl *R, BugReporter &BR, const CheckerBase *Checker) |
Definition at line 192 of file LLVMConventionsChecker.cpp.
References IsSmallVector(), IsStdString(), IsStdVector(), and clang::T.
|
static |
Definition at line 230 of file LLVMConventionsChecker.cpp.
References clang::RecordDecl::fields(), and IsPartOfAST().
|
static |
Definition at line 136 of file LLVMConventionsChecker.cpp.
References D, and clang::Decl::getBody().
Check whether the declaration is semantically inside the top-level namespace named by ns.
Definition at line 39 of file LLVMConventionsChecker.cpp.
References D, clang::Decl::getDeclContext(), clang::NamedDecl::getIdentifier(), and clang::IdentifierInfo::getName().
Referenced by IsClangAttr(), IsClangDecl(), IsClangStmt(), IsClangType(), IsSmallVector(), and IsStdVector().
|
static |
Definition at line 77 of file LLVMConventionsChecker.cpp.
References clang::NamedDecl::getName(), and InNamespace().
Referenced by IsPartOfAST().
|
static |
Definition at line 69 of file LLVMConventionsChecker.cpp.
References clang::NamedDecl::getName(), and InNamespace().
Referenced by IsPartOfAST().
|
static |
Definition at line 73 of file LLVMConventionsChecker.cpp.
References clang::NamedDecl::getName(), and InNamespace().
Referenced by IsPartOfAST().
|
static |
Definition at line 65 of file LLVMConventionsChecker.cpp.
References clang::NamedDecl::getName(), and InNamespace().
Referenced by IsPartOfAST().
Definition at line 29 of file LLVMConventionsChecker.cpp.
References clang::Type::getAs(), clang::getAsString(), and clang::T.
|
static |
Definition at line 197 of file LLVMConventionsChecker.cpp.
References clang::CXXRecordDecl::bases(), clang::Type::getAs(), IsClangAttr(), IsClangDecl(), IsClangStmt(), IsClangType(), IsPartOfAST(), and clang::T.
Referenced by CheckASTMemory(), and IsPartOfAST().
Definition at line 95 of file LLVMConventionsChecker.cpp.
References clang::Type::getAs(), clang::TemplateName::getAsTemplateDecl(), clang::NamedDecl::getName(), clang::TemplateSpecializationType::getTemplateName(), InNamespace(), and clang::T.
Referenced by AllocatesMemory().
Definition at line 49 of file LLVMConventionsChecker.cpp.
References clang::Type::getAs(), clang::TypedefType::getDecl(), clang::NamedDecl::getName(), clang::Decl::isInStdNamespace(), and clang::T.
Referenced by AllocatesMemory().
Definition at line 81 of file LLVMConventionsChecker.cpp.
References clang::Type::getAs(), clang::TemplateName::getAsTemplateDecl(), clang::NamedDecl::getName(), clang::TemplateSpecializationType::getTemplateName(), InNamespace(), and clang::T.
Referenced by AllocatesMemory().