This can be used to create a virtual environment (incl. VFS, source manager) for code snippets.
Details
Details
- Reviewers
sammccall klimek - Commits
- rG2e538089fa37: Add SourceManagerForFile helper which sets up SourceManager and dependencies…
rC331923: Add SourceManagerForFile helper which sets up SourceManager and dependencies…
rL331923: Add SourceManagerForFile helper which sets up SourceManager and dependencies…
Diff Detail
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 17902 Build 17902: arc lint + arc unit
Event Timeline
include/clang/Tooling/Core/Environment.h | ||
---|---|---|
1 ↗ | (On Diff #144524) | I'm not sure about this abstraction - I can't tell what it represents, and what in future should/shouldn't be added to it.
|
Comment Actions
- Create SourceManagerForFile instead of Environment; put it in SourceManager.h which seems to be a better place.
Comment Actions
Thanks for the comment and suggestion!
I've changed this to SourceManagerForFile and move it to SourceManager.h, which seems to be a more natural fit. SourceManagerForFile sounds like a sensible name to me, but I'm guess there might be a better name...
nit: single in-memory file