mirror of
https://github.com/nasa/trick.git
synced 2025-03-24 13:05:36 +00:00
Trick 15.3.dev does not build with clang/llvm 4.0.0 libraries. #410
Added a missing header file and backported a variation of the almostRealPath call from 17.
This commit is contained in:
parent
c489644ef3
commit
3aadbb87c2
@ -68,6 +68,10 @@ std::string getFileName( clang::CompilerInstance & ci , clang::SourceLocation sl
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
char * almostRealPath( const std::string& in_path ) {
|
||||
return almostRealPath(in_path.c_str());
|
||||
}
|
||||
|
||||
/*
|
||||
This function returns almost absolute path of the directory of the incoming path.
|
||||
It does not follow the last symbolic link.
|
||||
|
@ -11,6 +11,7 @@ std::string trim( const std::string& str, const std::string& whitespace = " \t\n
|
||||
bool isInUserCode( clang::CompilerInstance & ci , clang::SourceLocation sl , HeaderSearchDirs & hsd ) ;
|
||||
bool isInUserOrTrickCode( clang::CompilerInstance & ci , clang::SourceLocation sl , HeaderSearchDirs & hsd ) ;
|
||||
std::string getFileName( clang::CompilerInstance & ci , clang::SourceLocation sl , HeaderSearchDirs & hsd ) ;
|
||||
char * almostRealPath( const std::string& in_path ) ;
|
||||
char * almostRealPath( const char * in_path ) ;
|
||||
|
||||
#endif
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "clang/Basic/TargetInfo.h"
|
||||
#include "clang/Basic/FileManager.h"
|
||||
#include "clang/Lex/Preprocessor.h"
|
||||
#include "clang/Lex/PreprocessorOptions.h"
|
||||
#include "clang/Basic/Diagnostic.h"
|
||||
#include "clang/Parse/ParseAST.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user