We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 384d7f7 + e9c5f41 commit fc51e75Copy full SHA for fc51e75
lib/ClangImporter/ClangImporter.cpp
@@ -7366,6 +7366,10 @@ static bool hasNonCopyableAttr(const clang::RecordDecl *decl) {
7366
/// Recursively checks that there are no pointers in any fields or base classes.
7367
/// Does not check C++ records with specific API annotations.
7368
static bool hasPointerInSubobjects(const clang::CXXRecordDecl *decl) {
7369
+ clang::PrettyStackTraceDecl trace(decl, clang::SourceLocation(),
7370
+ decl->getASTContext().getSourceManager(),
7371
+ "looking for pointers in subobjects of");
7372
+
7373
// Probably a class template that has not yet been specialized:
7374
if (!decl->getDefinition())
7375
return false;
0 commit comments