naming
本頁內容尚未翻譯。
c.Declared
Section titled “c.Declared”record DeclaredA declared name: the node that declares it, the name, whether at file scope.
c.Naming.isIn
Section titled “c.Naming.isIn”def Naming.isIn (x : String) (xs : List String) : BoolWhether a name is in a list.
c.Naming.underscoreCapital
Section titled “c.Naming.underscoreCapital”def Naming.underscoreCapital (name : String) : BoolWhether a name begins with an underscore and then a capital letter.
c.Naming.headers
Section titled “c.Naming.headers”def Naming.headers (p : Program) : List StringThe headers a program’s C text includes, as cfamily.generate prints it (#include <h>).
c.Naming.listedIn
Section titled “c.Naming.listedIn”def Naming.listedIn (headers : List String) (table : List (String * String)) (name : String) : Option StringThe header of the included ones whose table lists a name, if any.
c.Naming.why
Section titled “c.Naming.why”def Naming.why (headers : List String) (d : Declared) : Option StringWhy a name may not be declared (none when it may), with the headers the program includes.
c.Naming.member
Section titled “c.Naming.member”def Naming.member (n : NodeId) (f : Field) : List DeclaredA member’s name (in its own name space: not file scope); an unnamed bit-field has none.
c.Naming.item
Section titled “c.Naming.item”def Naming.item (it : Item) : List DeclaredThe names an item declares: at file scope, and in its body or members.
c.Naming.firstReserved
Section titled “c.Naming.firstReserved”def Naming.firstReserved (p : Program) (items : List Item) : Option (NodeId * String)The first name a program may not declare: the node that declares it and why.