forked from OSchip/llvm-project
Also handle CXXConstructor, CXXDestructor and CXXConversion in CFG
printing. llvm-svn: 93968
This commit is contained in:
parent
7771b7c621
commit
06c1d87d14
|
@ -228,6 +228,9 @@ void AnalysisConsumer::HandleTopLevelSingleDecl(Decl *D) {
|
|||
break;
|
||||
}
|
||||
|
||||
case Decl::CXXConstructor:
|
||||
case Decl::CXXDestructor:
|
||||
case Decl::CXXConversion:
|
||||
case Decl::CXXMethod: {
|
||||
CXXMethodDecl *CXXMD = cast<CXXMethodDecl>(D);
|
||||
|
||||
|
@ -236,8 +239,7 @@ void AnalysisConsumer::HandleTopLevelSingleDecl(Decl *D) {
|
|||
return;
|
||||
|
||||
Stmt *Body = CXXMD->getBody();
|
||||
if (Body)
|
||||
HandleCode(CXXMD, Body, FunctionActions);
|
||||
if (Body) HandleCode(CXXMD, Body, FunctionActions);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue