[PATCH] D62457: Frontend: Create basic CompilerInstanceBuilder

Duncan P. N. Exon Smith via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat May 25 15:45:35 PDT 2019


dexonsmith created this revision.
dexonsmith added a reviewer: rsmith.
dexonsmith added a child revision: D62458: Frontend: Add CompilerInvocation and DiagnosticsEngine to the builder.

This sketches out the beginning of a `CompilerInstanceBuilder`.  For now
it just handles PCHContainerOps and InMemoryModuleCache, which are
already handled by the `CompilerInstance` constructor.

Subsequent commits will incrementally replace `CompilerInstance::set*`
and `CompilerInstance::create*` mutators with builder methods,
simplifying construction and possibly clarifying some lifetimes.


https://reviews.llvm.org/D62457

Files:
  clang/include/clang/Frontend/CompilerInstance.h
  clang/include/clang/Frontend/CompilerInstanceBuilder.h
  clang/lib/Frontend/CompilerInstance.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62457.201425.patch
Type: text/x-patch
Size: 4616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190525/91e1bedc/attachment-0001.bin>


More information about the cfe-commits mailing list