Skip to content

Commit

Permalink
ada: Add mention of what LSP stands for
Browse files Browse the repository at this point in the history
There are multiple possible interpretations of "LSP". For example,
"Language Server Protocol". This patch clarifies that the
occurrences of "LSP" in GNAT's source code refer to the Liskov
Substitution Principle.

gcc/ada/

	* einfo.ads: Mention full name of LSP.

Tested on x86_64-pc-linux-gnu, committed on master.
  • Loading branch information
ronan-d authored and ouuleilei-bot committed May 23, 2023
1 parent c2d62cd commit 6284b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gcc/ada/einfo.ads
Original file line number Diff line number Diff line change
Expand Up @@ -4778,7 +4778,8 @@ package Einfo is
-- Defined in subprogram entities. Set on wrappers created to handle
-- inherited class-wide pre/post conditions that call overridden
-- primitives. It references the parent primitive that has the
-- class-wide pre/post conditions.
-- class-wide pre/post conditions. LSP stands for Liskov Substitution
-- Principle.

---------------------------
-- Renaming and Aliasing --
Expand Down

0 comments on commit 6284b91

Please sign in to comment.