Basic constructor macro for comp-db-entry structures.
(make-comp-db-entry [:exec <exec>]
[:directory <directory>]
[:output <output>]
[:arguments <arguments>])
This is the usual way to construct comp-db-entry structures. It simply conses together a structure with the specified fields.
This macro generates a new comp-db-entry structure from scratch. See also change-comp-db-entry, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-comp-db-entry (&rest args) (std::make-aggregate 'comp-db-entry args '((:exec) (:directory) (:output) (:arguments)) 'make-comp-db-entry nil))
Function:
(defun comp-db-entry (exec directory output arguments) (declare (xargs :guard (and (stringp exec) (stringp directory) (string-optionp output) (comp-db-arg-listp arguments)))) (declare (xargs :guard t)) (b* ((exec (mbe :logic (acl2::str-fix exec) :exec exec)) (directory (mbe :logic (acl2::str-fix directory) :exec directory)) (output (mbe :logic (acl2::string-option-fix output) :exec output)) (arguments (mbe :logic (comp-db-arg-list-fix arguments) :exec arguments))) (list (cons 'exec exec) (cons 'directory directory) (cons 'output output) (cons 'arguments arguments))))