cmake-language.7.rst 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. .. cmake-manual-description: CMake Language Reference
  2. cmake-language(7)
  3. *****************
  4. .. only:: html
  5. .. contents::
  6. Organization
  7. ============
  8. CMake input files are written in the "CMake Language" in source files
  9. named ``CMakeLists.txt`` or ending in a ``.cmake`` file name extension.
  10. The term *listfile* is a general name for any such source file containing
  11. CMake commands that the tool processes.
  12. CMake Language source files in a project are organized into:
  13. * `Directories`_ (``CMakeLists.txt``),
  14. * `Scripts`_ (``<script>.cmake``), and
  15. * `Modules`_ (``<module>.cmake``).
  16. Directories
  17. -----------
  18. When CMake processes a project source tree, the entry point is
  19. a source file called ``CMakeLists.txt`` in the top-level source
  20. directory. This file may contain the entire build specification
  21. or use the :command:`add_subdirectory` command to add subdirectories
  22. to the build. Each subdirectory added by the command must also
  23. contain a ``CMakeLists.txt`` file as the entry point to that
  24. directory. For each source directory whose ``CMakeLists.txt`` file
  25. is processed CMake generates a corresponding directory in the build
  26. tree to act as the default working and output directory.
  27. Scripts
  28. -------
  29. An individual ``<script>.cmake`` source file may be processed
  30. in *script mode* by using the :manual:`cmake(1)` command-line tool
  31. with the :option:`-P <cmake -P>` option. Script mode simply runs
  32. the commands in the given CMake Language source file and does not
  33. generate a build system. It does not allow CMake commands that
  34. define build targets or actions.
  35. Modules
  36. -------
  37. CMake Language code in either `Directories`_ or `Scripts`_ may
  38. use the :command:`include` command to load a ``<module>.cmake``
  39. source file in the scope of the including context.
  40. See the :manual:`cmake-modules(7)` manual page for documentation
  41. of modules included with the CMake distribution.
  42. Project source trees may also provide their own modules and
  43. specify their location(s) in the :variable:`CMAKE_MODULE_PATH`
  44. variable.
  45. Syntax
  46. ======
  47. .. _`CMake Language Encoding`:
  48. Encoding
  49. --------
  50. A CMake Language source file may be written in 7-bit ASCII text for
  51. maximum portability across all supported platforms. Newlines may be
  52. encoded as either ``\n`` or ``\r\n`` but will be converted to ``\n``
  53. as input files are read.
  54. Note that the implementation is 8-bit clean so source files may
  55. be encoded as UTF-8 on platforms with system APIs supporting this
  56. encoding. In addition, CMake 3.2 and above support source files
  57. encoded in UTF-8 on Windows (using UTF-16 to call system APIs).
  58. Furthermore, CMake 3.0 and above allow a leading UTF-8
  59. `Byte-Order Mark`_ in source files.
  60. .. _Byte-Order Mark: https://en.wikipedia.org/wiki/Byte_order_mark
  61. Source Files
  62. ------------
  63. A CMake Language source file consists of zero or more
  64. `Command Invocations`_ separated by newlines and optionally
  65. spaces and `Comments`_:
  66. .. raw:: latex
  67. \begin{small}
  68. .. productionlist::
  69. file: `file_element`*
  70. file_element: `command_invocation` `line_ending` |
  71. : (`bracket_comment`|`space`)* `line_ending`
  72. line_ending: `line_comment`? `newline`
  73. space: <match '[ \t]+'>
  74. newline: <match '\n'>
  75. .. raw:: latex
  76. \end{small}
  77. Note that any source file line not inside `Command Arguments`_ or
  78. a `Bracket Comment`_ can end in a `Line Comment`_.
  79. .. _`Command Invocations`:
  80. Command Invocations
  81. -------------------
  82. A *command invocation* is a name followed by paren-enclosed arguments
  83. separated by whitespace:
  84. .. raw:: latex
  85. \begin{small}
  86. .. productionlist::
  87. command_invocation: `space`* `identifier` `space`* '(' `arguments` ')'
  88. identifier: <match '[A-Za-z_][A-Za-z0-9_]*'>
  89. arguments: `argument`? `separated_arguments`*
  90. separated_arguments: `separation`+ `argument`? |
  91. : `separation`* '(' `arguments` ')'
  92. separation: `space` | `line_ending`
  93. .. raw:: latex
  94. \end{small}
  95. For example:
  96. .. code-block:: cmake
  97. add_executable(hello world.c)
  98. Command names are case-insensitive.
  99. Nested unquoted parentheses in the arguments must balance.
  100. Each ``(`` or ``)`` is given to the command invocation as
  101. a literal `Unquoted Argument`_. This may be used in calls
  102. to the :command:`if` command to enclose conditions.
  103. For example:
  104. .. code-block:: cmake
  105. if(FALSE AND (FALSE OR TRUE)) # evaluates to FALSE
  106. .. note::
  107. CMake versions prior to 3.0 require command name identifiers
  108. to be at least 2 characters.
  109. CMake versions prior to 2.8.12 silently accept an `Unquoted Argument`_
  110. or a `Quoted Argument`_ immediately following a `Quoted Argument`_ and
  111. not separated by any whitespace. For compatibility, CMake 2.8.12 and
  112. higher accept such code but produce a warning.
  113. Command Arguments
  114. -----------------
  115. There are three types of arguments within `Command Invocations`_:
  116. .. raw:: latex
  117. \begin{small}
  118. .. productionlist::
  119. argument: `bracket_argument` | `quoted_argument` | `unquoted_argument`
  120. .. raw:: latex
  121. \end{small}
  122. .. _`Bracket Argument`:
  123. Bracket Argument
  124. ^^^^^^^^^^^^^^^^
  125. A *bracket argument*, inspired by `Lua`_ long bracket syntax,
  126. encloses content between opening and closing "brackets" of the
  127. same length:
  128. .. raw:: latex
  129. \begin{small}
  130. .. productionlist::
  131. bracket_argument: `bracket_open` `bracket_content` `bracket_close`
  132. bracket_open: '[' '='* '['
  133. bracket_content: <any text not containing a `bracket_close` with
  134. : the same number of '=' as the `bracket_open`>
  135. bracket_close: ']' '='* ']'
  136. .. raw:: latex
  137. \end{small}
  138. An opening bracket is written ``[`` followed by zero or more ``=`` followed
  139. by ``[``. The corresponding closing bracket is written ``]`` followed
  140. by the same number of ``=`` followed by ``]``.
  141. Brackets do not nest. A unique length may always be chosen
  142. for the opening and closing brackets to contain closing brackets
  143. of other lengths.
  144. Bracket argument content consists of all text between the opening
  145. and closing brackets, except that one newline immediately following
  146. the opening bracket, if any, is ignored. No evaluation of the
  147. enclosed content, such as `Escape Sequences`_ or `Variable References`_,
  148. is performed. A bracket argument is always given to the command
  149. invocation as exactly one argument.
  150. .. ATTENTION No code-block syntax highlighting in the following example
  151. (long string literal not supported by our cmake.py)
  152. For example::
  153. message([=[
  154. This is the first line in a bracket argument with bracket length 1.
  155. No \-escape sequences or ${variable} references are evaluated.
  156. This is always one argument even though it contains a ; character.
  157. The text does not end on a closing bracket of length 0 like ]].
  158. It does end in a closing bracket of length 1.
  159. ]=])
  160. .. note::
  161. CMake versions prior to 3.0 do not support bracket arguments.
  162. They interpret the opening bracket as the start of an
  163. `Unquoted Argument`_.
  164. .. _`Lua`: https://www.lua.org/
  165. .. _`Quoted Argument`:
  166. Quoted Argument
  167. ^^^^^^^^^^^^^^^
  168. A *quoted argument* encloses content between opening and closing
  169. double-quote characters:
  170. .. raw:: latex
  171. \begin{small}
  172. .. productionlist::
  173. quoted_argument: '"' `quoted_element`* '"'
  174. quoted_element: <any character except '\' or '"'> |
  175. : `escape_sequence` |
  176. : `quoted_continuation`
  177. quoted_continuation: '\' `newline`
  178. .. raw:: latex
  179. \end{small}
  180. Quoted argument content consists of all text between opening and
  181. closing quotes. Both `Escape Sequences`_ and `Variable References`_
  182. are evaluated. A quoted argument is always given to the command
  183. invocation as exactly one argument.
  184. .. ATTENTION No code-block syntax highlighting in the following example
  185. (escape \" not supported by our cmake.py)
  186. For example:
  187. .. code-block:: cmake
  188. message("This is a quoted argument containing multiple lines.
  189. This is always one argument even though it contains a ; character.
  190. Both \\-escape sequences and ${variable} references are evaluated.
  191. The text does not end on an escaped double-quote like \".
  192. It does end in an unescaped double quote.
  193. ")
  194. .. ATTENTION No code-block syntax highlighting in the following example
  195. (for conformity with the two above examples)
  196. The final ``\`` on any line ending in an odd number of backslashes
  197. is treated as a line continuation and ignored along with the
  198. immediately following newline character. For example:
  199. .. code-block:: cmake
  200. message("\
  201. This is the first line of a quoted argument. \
  202. In fact it is the only line but since it is long \
  203. the source code uses line continuation.\
  204. ")
  205. .. note::
  206. CMake versions prior to 3.0 do not support continuation with ``\``.
  207. They report errors in quoted arguments containing lines ending in
  208. an odd number of ``\`` characters.
  209. .. _`Unquoted Argument`:
  210. Unquoted Argument
  211. ^^^^^^^^^^^^^^^^^
  212. An *unquoted argument* is not enclosed by any quoting syntax.
  213. It may not contain any whitespace, ``(``, ``)``, ``#``, ``"``, or ``\``
  214. except when escaped by a backslash:
  215. .. raw:: latex
  216. \begin{small}
  217. .. productionlist::
  218. unquoted_argument: `unquoted_element`+ | `unquoted_legacy`
  219. unquoted_element: <any character except whitespace or one of '()#"\'> |
  220. : `escape_sequence`
  221. unquoted_legacy: <see note in text>
  222. .. raw:: latex
  223. \end{small}
  224. Unquoted argument content consists of all text in a contiguous block
  225. of allowed or escaped characters. Both `Escape Sequences`_ and
  226. `Variable References`_ are evaluated. The resulting value is divided
  227. in the same way `Lists`_ divide into elements. Each non-empty element
  228. is given to the command invocation as an argument. Therefore an
  229. unquoted argument may be given to a command invocation as zero or
  230. more arguments.
  231. For example:
  232. .. code-block:: cmake
  233. foreach(arg
  234. NoSpace
  235. Escaped\ Space
  236. This;Divides;Into;Five;Arguments
  237. Escaped\;Semicolon
  238. )
  239. message("${arg}")
  240. endforeach()
  241. .. note::
  242. To support legacy CMake code, unquoted arguments may also contain
  243. double-quoted strings (``"..."``, possibly enclosing horizontal
  244. whitespace), and make-style variable references (``$(MAKEVAR)``).
  245. Unescaped double-quotes must balance, may not appear at the
  246. beginning of an unquoted argument, and are treated as part of the
  247. content. For example, the unquoted arguments ``-Da="b c"``,
  248. ``-Da=$(v)``, and ``a" "b"c"d`` are each interpreted literally.
  249. They may instead be written as quoted arguments ``"-Da=\"b c\""``,
  250. ``"-Da=$(v)"``, and ``"a\" \"b\"c\"d"``, respectively.
  251. Make-style references are treated literally as part of the content
  252. and do not undergo variable expansion. They are treated as part
  253. of a single argument (rather than as separate ``$``, ``(``,
  254. ``MAKEVAR``, and ``)`` arguments).
  255. The above "unquoted_legacy" production represents such arguments.
  256. We do not recommend using legacy unquoted arguments in new code.
  257. Instead use a `Quoted Argument`_ or a `Bracket Argument`_ to
  258. represent the content.
  259. .. _`Escape Sequences`:
  260. Escape Sequences
  261. ----------------
  262. An *escape sequence* is a ``\`` followed by one character:
  263. .. raw:: latex
  264. \begin{small}
  265. .. productionlist::
  266. escape_sequence: `escape_identity` | `escape_encoded` | `escape_semicolon`
  267. escape_identity: '\' <match '[^A-Za-z0-9;]'>
  268. escape_encoded: '\t' | '\r' | '\n'
  269. escape_semicolon: '\;'
  270. .. raw:: latex
  271. \end{small}
  272. A ``\`` followed by a non-alphanumeric character simply encodes the literal
  273. character without interpreting it as syntax. A ``\t``, ``\r``, or ``\n``
  274. encodes a tab, carriage return, or newline character, respectively. A ``\;``
  275. outside of any `Variable References`_ encodes itself but may be used in an
  276. `Unquoted Argument`_ to encode the ``;`` without dividing the argument
  277. value on it. A ``\;`` inside `Variable References`_ encodes the literal
  278. ``;`` character. (See also policy :policy:`CMP0053` documentation for
  279. historical considerations.)
  280. .. _`Variable References`:
  281. Variable References
  282. -------------------
  283. A *variable reference* has the form ``${<variable>}`` and is
  284. evaluated inside a `Quoted Argument`_ or an `Unquoted Argument`_.
  285. A variable reference is replaced by the value of the specified
  286. variable or cache entry, or if neither is set, by the empty string.
  287. Variable references can nest and are evaluated from the
  288. inside out, e.g. ``${outer_${inner_variable}_variable}``.
  289. Literal variable references may consist of alphanumeric characters,
  290. the characters ``/_.+-``, and `Escape Sequences`_. Nested references
  291. may be used to evaluate variables of any name. See also policy
  292. :policy:`CMP0053` documentation for historical considerations and reasons why
  293. the ``$`` is also technically permitted but is discouraged.
  294. The `Variables`_ section documents the scope of variable names
  295. and how their values are set.
  296. An *environment variable reference* has the form ``$ENV{<variable>}``.
  297. See the `Environment Variables`_ section for more information.
  298. A *cache variable reference* has the form ``$CACHE{<variable>}``,
  299. and is replaced by the value of the specified cache entry without
  300. checking for a normal variable of the same name. If the cache
  301. entry does not exist, it is replaced by the empty string.
  302. See :variable:`CACHE` for more information.
  303. The :command:`if` command has a special condition syntax that
  304. allows for variable references in the short form ``<variable>``
  305. instead of ``${<variable>}``. However, environment variables
  306. always need to be referenced as ``$ENV{<variable>}``.
  307. Comments
  308. --------
  309. A comment starts with a ``#`` character that is not inside a
  310. `Bracket Argument`_, `Quoted Argument`_, or escaped with ``\``
  311. as part of an `Unquoted Argument`_. There are two types of
  312. comments: a `Bracket Comment`_ and a `Line Comment`_.
  313. .. _`Bracket Comment`:
  314. Bracket Comment
  315. ^^^^^^^^^^^^^^^
  316. A ``#`` immediately followed by a :token:`bracket_open` forms a
  317. *bracket comment* consisting of the entire bracket enclosure:
  318. .. raw:: latex
  319. \begin{small}
  320. .. productionlist::
  321. bracket_comment: '#' `bracket_argument`
  322. .. raw:: latex
  323. \end{small}
  324. For example:
  325. ::
  326. #[[This is a bracket comment.
  327. It runs until the close bracket.]]
  328. message("First Argument\n" #[[Bracket Comment]] "Second Argument")
  329. .. note::
  330. CMake versions prior to 3.0 do not support bracket comments.
  331. They interpret the opening ``#`` as the start of a `Line Comment`_.
  332. .. _`Line Comment`:
  333. Line Comment
  334. ^^^^^^^^^^^^
  335. A ``#`` not immediately followed by a :token:`bracket_open` forms a
  336. *line comment* that runs until the end of the line:
  337. .. raw:: latex
  338. \begin{small}
  339. .. productionlist::
  340. line_comment: '#' <any text not starting in a `bracket_open`
  341. : and not containing a `newline`>
  342. .. raw:: latex
  343. \end{small}
  344. For example:
  345. .. code-block:: cmake
  346. # This is a line comment.
  347. message("First Argument\n" # This is a line comment :)
  348. "Second Argument") # This is a line comment.
  349. Control Structures
  350. ==================
  351. Conditional Blocks
  352. ------------------
  353. The :command:`if`/:command:`elseif`/:command:`else`/:command:`endif`
  354. commands delimit code blocks to be executed conditionally.
  355. Loops
  356. -----
  357. The :command:`foreach`/:command:`endforeach` and
  358. :command:`while`/:command:`endwhile` commands delimit code
  359. blocks to be executed in a loop. Inside such blocks the
  360. :command:`break` command may be used to terminate the loop
  361. early whereas the :command:`continue` command may be used
  362. to start with the next iteration immediately.
  363. Command Definitions
  364. -------------------
  365. The :command:`macro`/:command:`endmacro`, and
  366. :command:`function`/:command:`endfunction` commands delimit
  367. code blocks to be recorded for later invocation as commands.
  368. .. _`CMake Language Variables`:
  369. Variables
  370. =========
  371. Variables are the basic unit of storage in the CMake Language.
  372. Their values are always of string type, though some commands may
  373. interpret the strings as values of other types.
  374. The :command:`set` and :command:`unset` commands explicitly
  375. set or unset a variable, but other commands have semantics
  376. that modify variables as well.
  377. Variable names are case-sensitive and may consist of almost
  378. any text, but we recommend sticking to names consisting only
  379. of alphanumeric characters plus ``_`` and ``-``.
  380. Variables have dynamic scope. Each variable "set" or "unset"
  381. creates a binding in the current scope:
  382. Block Scope
  383. The :command:`block` command may create a new scope for variable bindings.
  384. Function Scope
  385. `Command Definitions`_ created by the :command:`function` command
  386. create commands that, when invoked, process the recorded commands
  387. in a new variable binding scope. A variable "set" or "unset"
  388. binds in this scope and is visible for the current function and
  389. any nested calls within it, but not after the function returns.
  390. Directory Scope
  391. Each of the `Directories`_ in a source tree has its own variable
  392. bindings. Before processing the ``CMakeLists.txt`` file for a
  393. directory, CMake copies all variable bindings currently defined
  394. in the parent directory, if any, to initialize the new directory
  395. scope. CMake `Scripts`_, when processed with :option:`cmake -P`,
  396. bind variables in one "directory" scope.
  397. A variable "set" or "unset" not inside a function call binds
  398. to the current directory scope.
  399. Persistent Cache
  400. CMake stores a separate set of "cache" variables, or "cache entries",
  401. whose values persist across multiple runs within a project build
  402. tree. Cache entries have an isolated binding scope modified only
  403. by explicit request, such as by the ``CACHE`` option of the
  404. :command:`set` and :command:`unset` commands.
  405. When evaluating `Variable References`_, CMake first searches the
  406. function call stack, if any, for a binding and then falls back
  407. to the binding in the current directory scope, if any. If a
  408. "set" binding is found, its value is used. If an "unset" binding
  409. is found, or no binding is found, CMake then searches for a
  410. cache entry. If a cache entry is found, its value is used.
  411. Otherwise, the variable reference evaluates to an empty string.
  412. The ``$CACHE{VAR}`` syntax can be used to do direct cache entry
  413. lookups.
  414. The :manual:`cmake-variables(7)` manual documents the many variables
  415. that are provided by CMake or have meaning to CMake when set
  416. by project code.
  417. .. include:: include/ID_RESERVE.rst
  418. .. _`CMake Language Environment Variables`:
  419. Environment Variables
  420. =====================
  421. Environment Variables are like ordinary `Variables`_, with the
  422. following differences:
  423. Scope
  424. Environment variables have global scope in a CMake process.
  425. They are never cached.
  426. References
  427. `Variable References`_ have the form ``$ENV{<variable>}``, using the
  428. :variable:`ENV` operator.
  429. Initialization
  430. Initial values of the CMake environment variables are those of
  431. the calling process.
  432. Values can be changed using the :command:`set` and :command:`unset`
  433. commands.
  434. These commands only affect the running CMake process,
  435. not the system environment at large.
  436. Changed values are not written back to the calling process,
  437. and they are not seen by subsequent build or test processes.
  438. See the :option:`cmake -E env <cmake-E env>` command-line
  439. tool to run a command in a modified environment.
  440. Inspection
  441. See the :option:`cmake -E environment <cmake-E environment>` command-line
  442. tool to display all current environment variables.
  443. The :manual:`cmake-env-variables(7)` manual documents environment
  444. variables that have special meaning to CMake.
  445. .. _`CMake Language Lists`:
  446. Lists
  447. =====
  448. Although all values in CMake are stored as strings, a string
  449. may be treated as a list in certain contexts, such as during
  450. evaluation of an `Unquoted Argument`_. In such contexts, a string
  451. is divided into list elements by splitting on ``;`` characters not
  452. following an unequal number of ``[`` and ``]`` characters and not
  453. immediately preceded by a ``\``. The sequence ``\;`` does not
  454. divide a value but is replaced by ``;`` in the resulting element.
  455. A list of elements is represented as a string by concatenating
  456. the elements separated by ``;``. For example, the :command:`set`
  457. command stores multiple values into the destination variable
  458. as a list:
  459. .. code-block:: cmake
  460. set(srcs a.c b.c c.c) # sets "srcs" to "a.c;b.c;c.c"
  461. Lists are meant for simple use cases such as a list of source
  462. files and should not be used for complex data processing tasks.
  463. Most commands that construct lists do not escape ``;`` characters
  464. in list elements, thus flattening nested lists:
  465. .. code-block:: cmake
  466. set(x a "b;c") # sets "x" to "a;b;c", not "a;b\;c"
  467. In general, lists do not support elements containing ``;`` characters.
  468. To avoid problems, consider the following advice:
  469. * The interfaces of many CMake commands, variables, and properties accept
  470. semicolon-separated lists. Avoid passing lists with elements containing
  471. semicolons to these interfaces unless they document either direct support
  472. or some way to escape or encode semicolons.
  473. * When constructing a list, substitute an otherwise-unused placeholder
  474. for ``;`` in elements when. Then substitute ``;`` for the placeholder
  475. when processing list elements.
  476. For example, the following code uses ``|`` in place of ``;`` characters:
  477. .. code-block:: cmake
  478. set(mylist a "b|c")
  479. foreach(entry IN LISTS mylist)
  480. string(REPLACE "|" ";" entry "${entry}")
  481. # use "${entry}" normally
  482. endforeach()
  483. The :module:`ExternalProject` module's ``LIST_SEPARATOR`` option is an
  484. example of an interface built using this approach.
  485. * In lists of :manual:`generator expressions <cmake-generator-expressions(7)>`,
  486. use the :genex:`$<SEMICOLON>` generator expression.
  487. * In command calls, use `Quoted Argument`_ syntax whenever possible.
  488. The called command will receive the content of the argument with
  489. semicolons preserved. An `Unquoted Argument`_ will be split on
  490. semicolons.
  491. * In :command:`function` implementations, avoid ``ARGV`` and ``ARGN``,
  492. which do not distinguish semicolons in values from those separating values.
  493. Instead, prefer using named positional arguments and the ``ARGC`` and
  494. ``ARGV#`` variables.
  495. When using :command:`cmake_parse_arguments` to parse arguments, prefer
  496. its ``PARSE_ARGV`` signature, which uses the ``ARGV#`` variables.
  497. Note that this approach does not apply to :command:`macro` implementations
  498. because they reference arguments using placeholders, not real variables.