Skip to content

Commit 6110cb1

Browse files
[clang] Allow CompilerInvocation to change CASOptions
Add APIs to change CASOptions inside CompilerInvocation. This is needed to make copies of CompilerInvocations but share the underlying CAS storage and avoid making more CAS storages that points to the same location.
1 parent 0c6b5e1 commit 6110cb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/include/clang/Frontend/CompilerInvocation.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ class CompilerInvocation : public CompilerInvocationBase {
304304
return PPOpts;
305305
}
306306
std::shared_ptr<LangOptions> getLangOptsPtr() { return LangOpts; }
307+
std::shared_ptr<CASOptions> getCASOptsPtr() { return CASOpts; }
308+
void setCASOption(std::shared_ptr<CASOptions> CASOpts) {
309+
this->CASOpts = CASOpts;
310+
}
307311
/// @}
308312

309313
/// Create a compiler invocation from a list of input options.

0 commit comments

Comments
 (0)