Forward-declared classes aren't fully populated in S_sie.resource #378

I chose the wrong call when trying to support clang 3.9 and it's
removal of getRBraceLoc.  The best equivalent call in 3.9 is
getBraceRange().getEnd().
This commit is contained in:
Alex Lin
2017-01-23 17:48:16 -06:00
parent 4146b440b8
commit 38d2b10b9e
4 changed files with 24 additions and 11 deletions

View File

@ -7,6 +7,7 @@
#include "EnumVisitor.hh"
#include "EnumValues.hh"
#include "Utilities.hh"
#include "BraceMacro.hh"
extern llvm::cl::opt< int > debug_level ;
@ -26,7 +27,7 @@ bool EnumVisitor::VisitType(clang::Type *t) {
}
bool EnumVisitor::VisitEnumDecl(clang::EnumDecl *ed) {
eval.setFileName(getFileName(ci , ed->getSourceRange().getEnd(), hsd)) ;
eval.setFileName(getFileName(ci , ed->RBRACELOC(), hsd)) ;
return true;
}