[AST] explicit PrintOptions default constructor (#18142)

For use in LLDB.
This commit is contained in:
omochimetaru
2018-08-24 00:57:16 +09:00
committed by Jordan Rose
parent 2e12d6becd
commit c0114eaed4

View File

@@ -363,6 +363,9 @@ struct PrintOptions {
BracketOptions BracketOptions;
// This is explicit to guarantee that it can be called from LLDB.
PrintOptions() {}
bool excludeAttrKind(AnyAttrKind K) const {
if (std::any_of(ExcludeAttrList.begin(), ExcludeAttrList.end(),
[K](AnyAttrKind other) { return other == K; }))