forked from OSchip/llvm-project
[CommonOptionsParser] Return source paths as const ref.
This saves a superfluous copy and makes managing the lifetime of the returned strings a bit easier. llvm-svn: 271262
This commit is contained in:
parent
e3801b0023
commit
5d265347a5
|
@ -98,7 +98,7 @@ public:
|
|||
}
|
||||
|
||||
/// Returns a list of source file paths to process.
|
||||
std::vector<std::string> getSourcePathList() {
|
||||
const std::vector<std::string> &getSourcePathList() const {
|
||||
return SourcePathList;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue