Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions include/ifc/abstract-sgraph.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -751,6 +751,7 @@ namespace ifc {
Form, // FormIndex heap
Attr, // AttrIndex heap
Dir, // DirIndex heap
String, // TextOffset heap.
Vendor, // VendorIndex heap
Count
};
Expand Down Expand Up @@ -3022,6 +3023,12 @@ namespace ifc {
// Sequence of one or more attributes.
struct TupleAttr : Tag<AttrSort::Tuple>, Sequence<AttrIndex, HeapSort::Attr> {};

// -- Tool invocation
struct ToolInvocation {
TextOffset cmd; // The invoked command.
Sequence<TextOffset> args; // The arguments to the command.
};

namespace microsoft {
enum class PragmaCommentSort : std::uint8_t {
Unknown,
Expand Down
17 changes: 13 additions & 4 deletions src/sgraph.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,19 @@ namespace ifc {
static_assert(retractible_by_key(macro_sort_table));

constexpr SortNameMapEntry<HeapSort> heapsort_table[] = {
{HeapSort::Decl, "heap.decl"}, {HeapSort::Type, "heap.type"}, {HeapSort::Stmt, "heap.stmt"},
{HeapSort::Expr, "heap.expr"}, {HeapSort::Syntax, "heap.syn"}, {HeapSort::Word, "heap.word"},
{HeapSort::Chart, "heap.chart"}, {HeapSort::Spec, "heap.spec"}, {HeapSort::Form, "heap.pp"},
{HeapSort::Attr, "heap.attr"}, {HeapSort::Dir, "heap.dir"}, {HeapSort::Vendor, "heap.vendor"},
{HeapSort::Decl, "heap.decl"},
{HeapSort::Type, "heap.type"},
{HeapSort::Stmt, "heap.stmt"},
{HeapSort::Expr, "heap.expr"},
{HeapSort::Syntax, "heap.syn"},
{HeapSort::Word, "heap.word"},
{HeapSort::Chart, "heap.chart"},
{HeapSort::Spec, "heap.spec"},
{HeapSort::Form, "heap.pp"},
{HeapSort::Attr, "heap.attr"},
{HeapSort::Dir, "heap.dir"},
{HeapSort::String, "heap.string"},
{HeapSort::Vendor, "heap.vendor"},
};

static_assert(retractible_by_key(heapsort_table));
Expand Down
Loading