Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ class PointerCheckInjector : public RecursiveASTVisitor<PointerCheckInjector> {
static bool hasPtrCheckDisabledInContext(Sema *S, const Decl* D) {
if (isa<TranslationUnitDecl>(D))
return false;
if (auto *NS = dyn_cast<NamespaceDecl>(D)) {
if (NS->getName() == "Experimental") {
return true;
}
}
for (const auto *Ann : D->specific_attrs<clang::AnnotateAttr>()) {
if (Ann->getAnnotation() == "__cling__ptrcheck(off)")
return true;
Expand Down
Loading