-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d2a465
commit 0456abe
Showing
21 changed files
with
262 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// | ||
// Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
// Copyright (c) 2024 Krystian Stasiowski ([email protected]) | ||
// | ||
// Official repository: https://github.com/cppalliance/mrdocs | ||
// | ||
|
||
#ifndef MRDOCS_API_METADATA_CONCEPT_HPP | ||
#define MRDOCS_API_METADATA_CONCEPT_HPP | ||
|
||
#include <mrdocs/Platform.hpp> | ||
#include <mrdocs/Metadata/Info.hpp> | ||
#include <mrdocs/Metadata/Expression.hpp> | ||
#include <mrdocs/Metadata/Source.hpp> | ||
|
||
namespace clang { | ||
namespace mrdocs { | ||
|
||
/** Info for concepts. | ||
*/ | ||
struct ConceptInfo | ||
: InfoCommonBase<InfoKind::Concept> | ||
, SourceInfo | ||
{ | ||
/** The concepts template parameters | ||
*/ | ||
std::unique_ptr<TemplateInfo> Template; | ||
|
||
/** The concepts constraint-expression | ||
*/ | ||
ExprInfo Constraint; | ||
|
||
//-------------------------------------------- | ||
|
||
explicit ConceptInfo(SymbolID ID) noexcept | ||
: InfoCommonBase(ID) | ||
{ | ||
} | ||
}; | ||
|
||
} // mrdocs | ||
} // clang | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
share/mrdocs/addons/generator/asciidoc/partials/signature/concept.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{>template-head symbol.template}} | ||
|
||
concept {{>declarator-id symbol}} = {{symbol.constraint}} |
30 changes: 30 additions & 0 deletions
30
share/mrdocs/addons/generator/asciidoc/partials/symbols/concept.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{!-- concept --}} | ||
= {{>nested-name-specifier symbol=symbol.parent includeNamespace=true}}{{symbol.name}} | ||
|
||
{{symbol.doc.brief}} | ||
|
||
== Synopsis | ||
|
||
{{>source dcl=(primary_location symbol)}} | ||
|
||
[source,cpp,subs="verbatim,macros,-callouts"] | ||
---- | ||
{{>signature/concept symbol=symbol}}; | ||
---- | ||
{{#if symbol.doc.description}} | ||
== Description | ||
{{symbol.doc.description}} | ||
{{/if}} | ||
{{#if symbol.doc.see}} | ||
== See Also | ||
{{#each symbol.doc.see}} | ||
{{.}} | ||
{{/each}} | ||
{{/if}} |
2 changes: 1 addition & 1 deletion
2
share/mrdocs/addons/generator/asciidoc/partials/template-head.adoc.hbs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
template<{{#each params}}{{#unless (and @first @last)}} | ||
{{/unless}}{{>template-param~}} | ||
{{#unless @last}},{{/unless~}} | ||
{{/each~}}>{{#if requires}} requires {{requires}}{{/if}} | ||
{{/each}}>{{#if requires}} requires {{requires}}{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.