Skip to content

Commit 2e4b285

Browse files
committed
chore: dom::create spelling
1 parent 1a89402 commit 2e4b285

File tree

10 files changed

+26
-26
lines changed

10 files changed

+26
-26
lines changed

include/mrdox/Dom/DomArray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MRDOX_DECL
4545
{
4646
if(index >= list_.size())
4747
return nullptr;
48-
return dom::makePointer<U>(list_[index], corpus_);
48+
return dom::create<U>(list_[index], corpus_);
4949
}
5050
};
5151

include/mrdox/Support/Dom.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class MRDOX_DECL
7474
};
7575

7676
template<class U, class... Args>
77-
auto makePointer(Args&&... args);
77+
auto create(Args&&... args);
7878

7979
/** A pointer container for object or array.
8080
*/
@@ -136,11 +136,11 @@ class Pointer
136136
}
137137

138138
template<class U, class... Args>
139-
friend auto makePointer(Args&&... args);
139+
friend auto create(Args&&... args);
140140
};
141141

142142
template<class U, class... Args>
143-
auto makePointer(Args&&... args)
143+
auto create(Args&&... args)
144144
{
145145
return Pointer<U>(new U(
146146
std::forward<Args>(args)...));

source/-adoc/Builder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Expected<std::string>
164164
Builder::
165165
renderSinglePageHeader()
166166
{
167-
auto obj = dom::makePointer<dom::Object>();
167+
auto obj = dom::create<dom::Object>();
168168
auto text = callTemplate("single-header.adoc.hbs", obj);
169169
return text;
170170
}
@@ -173,7 +173,7 @@ Expected<std::string>
173173
Builder::
174174
renderSinglePageFooter()
175175
{
176-
auto obj = dom::makePointer<dom::Object>();
176+
auto obj = dom::create<dom::Object>();
177177
auto text = callTemplate("single-footer.adoc.hbs", obj);
178178
return text;
179179
}
@@ -189,7 +189,7 @@ getSymbol(
189189
[&]<class T>(T const& I) ->
190190
dom::ObjectPtr
191191
{
192-
return dom::makePointer<
192+
return dom::create<
193193
DomSymbol<T>>(I, corpus_);
194194
});
195195
}
@@ -199,7 +199,7 @@ Builder::
199199
createContext(
200200
SymbolID const& id)
201201
{
202-
return dom::makePointer<DomContext>(
202+
return dom::create<DomContext>(
203203
DomContext::Hash({
204204
{ "document", "test" },
205205
{ "symbol", getSymbol(id) }

source/Dom/DomBaseArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ get(
3636
std::size_t index) const
3737
{
3838
if(index < list_.size())
39-
return dom::makePointer<DomBase>(
39+
return dom::create<DomBase>(
4040
corpus_.get<RecordInfo>(
4141
list_[index].Type.id),
4242
list_[index],

source/Dom/DomParam.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ get(std::string_view key) const
3030
if(key == "name")
3131
return dom::nonEmptyString(I_->Name);
3232
if(key == "type")
33-
return dom::makePointer<DomType>(I_->Type, corpus_);
33+
return dom::create<DomType>(I_->Type, corpus_);
3434
if(key == "default")
3535
return dom::nonEmptyString(I_->Default);
3636
return nullptr;

source/Dom/DomParamArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ get(std::size_t index) const
3636
{
3737
if(index >= list_.size())
3838
return nullptr;
39-
return dom::makePointer<DomParam>(
39+
return dom::create<DomParam>(
4040
list_[index], corpus_);
4141
}
4242

source/Dom/DomSource.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ get(std::string_view key) const
3232
{
3333
if(! I_.DefLoc)
3434
return nullptr;
35-
return dom::makePointer<DomLocation>(
35+
return dom::create<DomLocation>(
3636
*I_.DefLoc, corpus_);
3737
}
3838
if(key == "decl")
39-
return dom::makePointer<DomArray<
39+
return dom::create<DomArray<
4040
Location, DomLocation>>(I_.Loc, corpus_);
4141
return nullptr;
4242
}

source/Dom/DomSymbol.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,24 @@ get(std::string_view key) const
4949
if(key == "name")
5050
return I_->Name;
5151
if(key == "namespace")
52-
return dom::makePointer<DomSymbolArray>(
52+
return dom::create<DomSymbolArray>(
5353
I_->Namespace, corpus_);
5454
if(key == "doc")
5555
{
5656
if(I_->javadoc)
57-
return dom::makePointer<DomJavadoc>(
57+
return dom::create<DomJavadoc>(
5858
*I_->javadoc, corpus_);
5959
return nullptr;
6060
}
6161
if constexpr(std::derived_from<T, SourceInfo>)
6262
{
6363
if(key == "loc")
64-
return dom::makePointer<DomSource>(*I_, corpus_);
64+
return dom::create<DomSource>(*I_, corpus_);
6565
}
6666
if constexpr(T::isNamespace())
6767
{
6868
if(key == "members")
69-
return dom::makePointer<DomSymbolArray>(
69+
return dom::create<DomSymbolArray>(
7070
I_->Members, corpus_);
7171
if(key == "specializations")
7272
return nullptr;
@@ -78,16 +78,16 @@ get(std::string_view key) const
7878
if(key == "is-typedef")
7979
return I_->IsTypeDef;
8080
if(key == "bases")
81-
return dom::makePointer<DomBaseArray>(
81+
return dom::create<DomBaseArray>(
8282
I_->Bases, corpus_);
8383
if(key == "friends")
84-
return dom::makePointer<DomSymbolArray>(
84+
return dom::create<DomSymbolArray>(
8585
I_->Friends, corpus_);
8686
if(key == "members")
87-
return dom::makePointer<DomSymbolArray>(
87+
return dom::create<DomSymbolArray>(
8888
I_->Members, corpus_);
8989
if(key == "specializations")
90-
return dom::makePointer<DomSymbolArray>(
90+
return dom::create<DomSymbolArray>(
9191
I_->Specializations, corpus_);
9292
if(key == "template")
9393
{
@@ -99,13 +99,13 @@ get(std::string_view key) const
9999
if constexpr(T::isFunction())
100100
{
101101
if(key == "params")
102-
return dom::makePointer<DomParamArray>(
102+
return dom::create<DomParamArray>(
103103
I_->Params, corpus_);
104104
if(key == "return")
105-
return dom::makePointer<DomType>(
105+
return dom::create<DomType>(
106106
I_->ReturnType, corpus_);
107107
if(key == "specs")
108-
return dom::makePointer<DomFnSpecs>(
108+
return dom::create<DomFnSpecs>(
109109
*I_, corpus_);
110110
if(key == "template")
111111
{

source/Dom/DomSymbolArray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ get(std::size_t index) const
4141
[&]<class T>(T const& I) ->
4242
dom::ObjectPtr
4343
{
44-
return dom::makePointer<
44+
return dom::create<
4545
DomSymbol<T>>(I, corpus_);
4646
});
4747
}

source/Dom/DomType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ get(std::string_view key) const
4949
[&]<class T>(T const& I) ->
5050
dom::ObjectPtr
5151
{
52-
return dom::makePointer<
52+
return dom::create<
5353
DomSymbol<T>>(I, corpus_);
5454
});
5555
}

0 commit comments

Comments
 (0)