From 6390c95ae3f793b465db2cfbb743d9312ed0ffbf Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Tue, 28 May 2024 18:58:34 -0700 Subject: [PATCH] Create files for Statements and Declarations; add note about default linkage --- specs/language/declarations.tex | 8 ++++++++ specs/language/hlsl.tex | 2 ++ specs/language/placeholders.tex | 6 ------ specs/language/statements.tex | 2 ++ 4 files changed, 12 insertions(+), 6 deletions(-) create mode 100644 specs/language/declarations.tex create mode 100644 specs/language/statements.tex diff --git a/specs/language/declarations.tex b/specs/language/declarations.tex new file mode 100644 index 00000000..5aecde83 --- /dev/null +++ b/specs/language/declarations.tex @@ -0,0 +1,8 @@ +\Ch{Declarations}{Decl} +\Sec{Function Definitions}{Decl.Function} +\Sub{Visibility and Linkage}{Decl.Function.Visibility} + +\p Functions have \textit{internal linkage} by default. + +\Sec{Attributes}{Decl.Attr} +\Sub{Entry Attributes}{Decl.Attr.Entry} diff --git a/specs/language/hlsl.tex b/specs/language/hlsl.tex index 936345a7..340af635 100644 --- a/specs/language/hlsl.tex +++ b/specs/language/hlsl.tex @@ -89,6 +89,8 @@ \input{conversions} \input{expressions} \input{overloading} +\input{statements} +\input{declarations} \input{placeholders} % Declare placeholder references diff --git a/specs/language/placeholders.tex b/specs/language/placeholders.tex index 7996c91a..9b2b04b5 100644 --- a/specs/language/placeholders.tex +++ b/specs/language/placeholders.tex @@ -4,12 +4,6 @@ % forward references can be inserted into the specification as it is being % written to force updating the references as they change. -\Ch{Statements}{Stmt} -\Sec{Label Statements}{Stmt.Label} -\Ch{Declarations}{Decl} -\Sec{Function Definitions}{Decl.Function} -\Sec{Attributes}{Decl.Attr} -\Sub{Entry Attributes}{Decl.Attr.Entry} \Ch{Classes}{Classes} \Sec{Static Members}{Classes.Static} \Sec{Conversions}{Classes.Conversions} diff --git a/specs/language/statements.tex b/specs/language/statements.tex new file mode 100644 index 00000000..938ca344 --- /dev/null +++ b/specs/language/statements.tex @@ -0,0 +1,2 @@ +\Ch{Statements}{Stmt} +\Sec{Label Statements}{Stmt.Label}