Currently YAML sequences require std::vectors. All of the methods that the YAML parser accesses though are present in SmallVector, so there's no reason we can't support SmallVector inherently. This patch does that.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/llvm/Support/YAMLTraits.h | ||
---|---|---|
1362–1382 ↗ | (On Diff #66979) | Is this formatted right? it looks funny to me for some reason. |
1381 ↗ | (On Diff #66979) | Where is flow used? |
1406 ↗ | (On Diff #66979) | Shouldn't this be unsigned to match SmallVector's template? |
1420 ↗ | (On Diff #66979) | Ditto. |
include/llvm/Support/YAMLTraits.h | ||
---|---|---|
1362–1382 ↗ | (On Diff #66979) | It's clang-formatted, so I guess so. Which party looks funny? |
1381 ↗ | (On Diff #66979) | It seems to be used to distinguish a flow sequence from a regular sequence. I don't know how it's used, other than to say that it's an optional member that if defined, causes the parser to treat it differently. See line 47 of this file. That said, FlowSequenceTraitsImpl and SequenceTraitsImpl are identical with the exception of the existence of the flow variable. So I'm going to remove this class and consolidate. New patch incoming shortly. |
1406 ↗ | (On Diff #66979) | Yes, good catch. |
LGTM with nits.
include/llvm/Support/YAMLTraits.h | ||
---|---|---|
1362 ↗ | (On Diff #66985) | My clang-format would put this on its own line. |
Looks like this CL broke LLDB cmake buildbot - http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/17873/steps/ninja%20build%20local/logs/stdio, could you take a look?