Commit Graph

9 Commits

Author SHA1 Message Date
Massimo Fioravanti 87aef3fbad revng-c now uses Model accessors 2022-12-12 11:35:52 +01:00
Pietro Fezzardi 9589ba6962 Drop unused variable from getDependencyForFullType 2022-10-12 08:21:28 +02:00
Pietro Fezzardi 7583537848 DependencyGraph.cpp: fix typo in comments 2022-10-12 08:21:13 +02:00
Giacomo Vercesi ab125b35b0 Fix License headers
Change company name to "rev.ng Labs Srl" in all license headers
to reflect changed company name and legal status
Add missing license headers to files that didn't have one
2022-04-19 12:17:59 +02:00
Pietro Fezzardi c613c61add HeadersGeneration: fix stack arguments dependency
Before this commit, the DependencyGraph used by HeadersGeneration to
represent dependencies between type declarations and definition did not
take into consideration RawFunctionType.StackArgumentsType properly.

This commit uses model::Type::edges() to inspect the dependencies of
the types, fixing this problem.
2022-04-08 17:58:06 +02:00
Giacomo Vercesi da06acf29e Update to reflect removal of tags from model YAML 2022-04-08 17:57:23 +02:00
Pietro Fezzardi a654476789 Make EnumType.UnderlyingType a QualifiedType 2022-04-08 15:24:29 +02:00
Pietro Fezzardi c41ca3a451 New revng helpers for Qualifier and QualifiedType 2022-03-17 17:15:50 +01:00
Alvise de Faveri 73c743597b Pull out DepGraph and naming from ModelToHeader
Separate `ModelToHeader.cpp` into 3 different files:

1. DependencyGraph, used to calculate the precedence between
   type declarations
2. ModelTypeNames, that holds all the naming logic, whose
   primitives are accessible from other modules through a
   public header
3. ModelToHeader, that now contains only the logic to print
   out declarations and definitions

Also add a compilation test for the headers generated by this pass.
2022-02-10 17:12:56 +01:00