Provide default implementations so that only getCompileCommands() is mandatory.
Details
Diff Detail
- Build Status
Buildable 12436 Build 12436: arc lint + arc unit
Event Timeline
include/clang/Tooling/CompilationDatabase.h | ||
---|---|---|
122 | I know very little about LLVM's standards, so ignore me if I'm wrong, but shouldn't this be returning a pair of (begin,end) iterators rather than potentially a copy of a very large array of strings? And shouldn't it be returning an iteration over StringRef rather then std::string, which will require copying the actual data? | |
133 | similarly here |
include/clang/Tooling/CompilationDatabase.h | ||
---|---|---|
122 | You might well be right. But this is an existing interface designed as an extension point for out-of-tree build systems. I'd rather not break them unless we have evidence of an actual performance problem. |
I know very little about LLVM's standards, so ignore me if I'm wrong, but shouldn't this be returning a pair of (begin,end) iterators rather than potentially a copy of a very large array of strings?
And shouldn't it be returning an iteration over StringRef rather then std::string, which will require copying the actual data?