We intend to make PdbAstBuilder abstract and implement
PdbAstBuilderClang along with any other languages that wish to use
PDBs. This is the first step.
Details
- Reviewers
aleksandr.urakov zturner amccarth
Diff Detail
- Build Status
Buildable 34942 Build 34941: arc lint + arc unit
Event Timeline
I know Zach isn't working on lldb anymore. Not sure who else to tag for NativePDB stuff. There is going to be a ton of commits similar to this to follow.
LGTM, thanks! Sorry for the long delay with the reply, I had days off.
You can add @amccarth to reviewers of NativePDB patches, he has taken over the work for Zachary.
source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp | ||
---|---|---|
220 | auto x = ...; return x; doesn't add any value. I'd just return the expression. | |
494 | Should the return value become Expected<clang::DeclContext>? | |
499 | The two statements above get repeated several times in this patch. Consider making a helper function like GetTranslationUnitDeclContext. |
source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp | ||
---|---|---|
494 | Technically, yes. But not because of this code. Cleaning up some of the pointers is on my list of to-dos for this file as well. |
LGTM.
source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp | ||
---|---|---|
494 | OK. I brought it up because the goal seems to be to take a step toward making these APIs more general and thus abstractable, and tweaking the return value would seem (to me) to be part of that. If you're planning to make those kinds in a future patch, then I'm satisfied. |
auto x = ...; return x; doesn't add any value. I'd just return the expression.