mirror of
https://github.com/nasa/trick.git
synced 2025-06-22 16:58:57 +00:00
Added a version of almostRealPath that takes a const std::string& parameter so we don't have to use c_str() everywhere
This commit is contained in:
@ -69,6 +69,10 @@ std::string getFileName( clang::CompilerInstance & ci , clang::SourceLocation sl
|
|||||||
}
|
}
|
||||||
|
|
||||||
#include <iostream>
|
#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.
|
This function returns almost absolute path of the directory of the incoming path.
|
||||||
It does not follow the last symbolic link.
|
It does not follow the last symbolic link.
|
||||||
|
@ -17,6 +17,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 isInUserCode( clang::CompilerInstance & ci , clang::SourceLocation sl , HeaderSearchDirs & hsd ) ;
|
||||||
bool isInUserOrTrickCode( 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 ) ;
|
std::string getFileName( clang::CompilerInstance & ci , clang::SourceLocation sl , HeaderSearchDirs & hsd ) ;
|
||||||
|
char * almostRealPath( const std::string& in_path ) ;
|
||||||
char * almostRealPath( const char * in_path ) ;
|
char * almostRealPath( const char * in_path ) ;
|
||||||
|
|
||||||
std::string color(const Color& color, const std::string& text);
|
std::string color(const Color& color, const std::string& text);
|
||||||
|
Reference in New Issue
Block a user