Function Entry: CLAL-LINT-ENCODING-EXTENSIONS

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: CLAL-LINT-ENCODING-EXTENSIONS

Name

clal-lint-encoding-extensions

Class

clautolisp Extension Function

Syntax

(clal-lint-encoding-extensions form)

Arguments and Values

  • form — a parsed AutoLISP s-expression (a form tree).

Description

Walk form and emit encoding-dispatch diagnostics for every encoding-extension call site it contains — (load … encoding), (open … encoding), (open … 'ccs=…'), and getvar / setvar of "LISPSYS". The usual dialect / pragma / --lax gates apply. User code can pipe a file's parsed form tree through this builtin before evaluation to catch encoding-extension uses statically; a clean tree emits nothing.

Return Values

T (per the AutoLISP convention that linters return T on completion); the diagnostics are the user-visible output.

Side Effects

Emits encoding diagnostics to the diagnostic stream.

Affected By

  • The active dialect, pragmas, and --lax gating.
  • The per-code suppression list (see clal-suppress-enc-diagnostic).

Exceptional Situations

None beyond ordinary form-tree traversal.

Examples

(clal-lint-encoding-extensions
  '(load "util.lsp" "UTF-8"))
=> T          ; plus an encoding-extension diagnostic

Availability

  • clautolisp: documented (this entry); implemented since an earlier clautolisp release.
  • AutoCAD: NOT present.
  • BricsCAD: NOT present.

Source Notes

  • clautolisp-only extension; part of the encoding-diagnostics family. See this chapter's Overview.