mirror of
https://github.com/nasa/trick.git
synced 2025-06-16 06:08:17 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user