mirror of
https://github.com/nasa/trick.git
synced 2025-06-16 14:18:28 +00:00
ICG does not compile using llvm 3.9 #339
The call getRBraceLoc to find the ending source location of things is gone. Replaced it with getting the source range and get the end of that range. Also the way to get clang/llvm 3.9 to process c++11 code required some reordering of calls in main as well as adding some more features to be turned on.
This commit is contained in:
@ -26,7 +26,7 @@ bool EnumVisitor::VisitType(clang::Type *t) {
|
||||
}
|
||||
|
||||
bool EnumVisitor::VisitEnumDecl(clang::EnumDecl *ed) {
|
||||
eval.setFileName(getFileName(ci , ed->getRBraceLoc(), hsd)) ;
|
||||
eval.setFileName(getFileName(ci , ed->getSourceRange().getEnd(), hsd)) ;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user