Skip to content

Commit 30b5486

Browse files
committed
Store whether record is CXXMethodDecl
#perf
1 parent 352cd77 commit 30b5486

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

include/mrdocs/Metadata/Info/Function.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ struct FunctionInfo final
171171
std::vector<std::string> Attributes;
172172

173173
// CXXMethodDecl
174+
bool IsRecordMethod = false;
174175
bool IsVirtual = false;
175176
bool IsVirtualAsWritten = false;
176177
bool IsPure = false;

src/lib/AST/ASTVisitor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ populate(FunctionInfo& I, CXXMethodDecl const* D)
881881
{
882882
FunctionDecl const* FD = D;
883883
populate(I, FD);
884+
I.IsRecordMethod = true;
884885
I.IsVirtual |= D->isVirtual();
885886
I.IsVirtualAsWritten |= D->isVirtualAsWritten();
886887
I.IsPure |= D->isPureVirtual();

0 commit comments

Comments
 (0)