Pass StringRef-s instead of copying strings...
This commit is contained in:
parent
b714047cbb
commit
b7a590c40e
@ -58,7 +58,8 @@ namespace cling {
|
||||
|
||||
// AutoloadingStateInfo m_State;
|
||||
|
||||
void report(clang::SourceLocation l, std::string name,std::string header);
|
||||
void report(clang::SourceLocation l, llvm::StringRef name,
|
||||
llvm::StringRef header);
|
||||
};
|
||||
} // end namespace cling
|
||||
|
||||
|
@ -29,7 +29,8 @@ using namespace clang;
|
||||
|
||||
namespace cling {
|
||||
|
||||
void AutoloadCallback::report(clang::SourceLocation l,std::string name,std::string header) {
|
||||
void AutoloadCallback::report(clang::SourceLocation l, llvm::StringRef name,
|
||||
llvm::StringRef header) {
|
||||
Sema& sema= m_Interpreter->getSema();
|
||||
|
||||
unsigned id
|
||||
|
Loading…
x
Reference in New Issue
Block a user