git: e64ee42b3c - main - [phb]: Use AsciiDoc built-in attributes for "c++"

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 27 Dec 2021 21:12:45 UTC
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/doc/commit/?id=e64ee42b3cb4234cba74c3cf837a4ef7f7363974

commit e64ee42b3cb4234cba74c3cf837a4ef7f7363974
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2021-12-27 20:15:27 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2021-12-27 20:15:27 +0000

    [phb]: Use AsciiDoc built-in attributes for "c++"
    
    Use built-in character replacement for "c++" instead of custom label.
    
    Discussed with carlavilla@.
---
 documentation/content/en/books/porters-handbook/uses/_index.adoc | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/documentation/content/en/books/porters-handbook/uses/_index.adoc b/documentation/content/en/books/porters-handbook/uses/_index.adoc
index 06c5ed4421..13d1ce34a0 100644
--- a/documentation/content/en/books/porters-handbook/uses/_index.adoc
+++ b/documentation/content/en/books/porters-handbook/uses/_index.adoc
@@ -21,7 +21,6 @@ path: "/books/porters-handbook/"
 :partnums:
 :source-highlighter: rouge
 :experimental:
-:c-plus-plus: c++
 :images-path: books/porters-handbook/
 
 ifdef::env-beastie[]
@@ -272,11 +271,11 @@ For more information see crossref:special[using-cmake,Using `cmake`].
 [[uses-compiler]]
 == `compiler`
 
-Possible arguments: (none), `env` (default, implicit), `{c-plus-plus}17-lang`, `{c-plus-plus}14-lang`, `{c-plus-plus}11-lang`, `gcc-{c-plus-plus}11-lib`, `{c-plus-plus}11-lib`, `{c-plus-plus}0x`, `c11`, `nestedfct`, `features`
+Possible arguments: (none), `env` (default, implicit), `{cpp}17-lang`, `{cpp}14-lang`, `{cpp}11-lang`, `gcc-{cpp}11-lib`, `{cpp}11-lib`, `{cpp}0x`, `c11`, `nestedfct`, `features`
 
 Determines which compiler to use based on any given wishes.
-Use `{c-plus-plus}17-lang` if the port needs a {c-plus-plus}17-capable compiler, `{c-plus-plus}14-lang` if the port needs a {c-plus-plus}14-capable compiler, `{c-plus-plus}11-lang` if the port needs a {c-plus-plus}11-capable compiler, `gcc-{c-plus-plus}11-lib` if the port needs the `g++` compiler with a {c-plus-plus}11 library, or `{c-plus-plus}11-lib` if the port needs a {c-plus-plus}11-ready standard library.
-If the port needs a compiler understanding {c-plus-plus}0X, C11 or nested functions, the corresponding parameters should be used.
+Use `{cpp}17-lang` if the port needs a {cpp}17-capable compiler, `{cpp}14-lang` if the port needs a {cpp}14-capable compiler, `{cpp}11-lang` if the port needs a {cpp}11-capable compiler, `gcc-{cpp}11-lib` if the port needs the `g++` compiler with a {cpp}11 library, or `{cpp}11-lib` if the port needs a {cpp}11-ready standard library.
+If the port needs a compiler understanding {cpp}0X, C11 or nested functions, the corresponding parameters should be used.
 
 Use `features` to request a list of features supported by the default compiler.
 After including [.filename]#bsd.port.pre.mk# the port can inspect the results using these variables:
@@ -286,7 +285,7 @@ After including [.filename]#bsd.port.pre.mk# the port can inspect the results us
 * `COMPILER_VERSION`: the first two digits of the version of the default compiler.
 * `ALT_COMPILER_VERSION`: the first two digits of the version of the alternative compiler, if present.
 * `CHOSEN_COMPILER_TYPE`: the chosen compiler, either gcc or clang
-* `COMPILER_FEATURES`: the features supported by the default compiler. It currently lists the {c-plus-plus} library.
+* `COMPILER_FEATURES`: the features supported by the default compiler. It currently lists the {cpp} library.
 
 [[uses-cpe]]
 == `cpe`