diff options
author | hjk <hjk@qt.io> | 2022-06-23 16:56:36 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-06-24 11:49:41 +0000 |
commit | ffa3aad57647be2d33246b5f07eaa32450dd87a6 (patch) | |
tree | 6ad17cd8d0e23ddedd461fd846777287f4029573 /src/libs/3rdparty/cplusplus/Name.h | |
parent | 85cd97a33446699f97a21429ceb22f3acf40a5be (diff) |
CPlusPlus: Inline some simple central functions
Depending on context, callgrind sees contributions of >8% to
the total cost of project parsing for these functions. The
functional are actualy executed executed out-of-line, often
for a function body of one "payload" instruction only.
Inlining removes the call/endbr64/ret overhead.
Change-Id: I6886f08e322fcaa4e0f54d424279e0a8c24e4718
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/Name.h')
-rw-r--r-- | src/libs/3rdparty/cplusplus/Name.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libs/3rdparty/cplusplus/Name.h b/src/libs/3rdparty/cplusplus/Name.h index 1806a1e4cb..d1ba99ae36 100644 --- a/src/libs/3rdparty/cplusplus/Name.h +++ b/src/libs/3rdparty/cplusplus/Name.h @@ -35,15 +35,6 @@ public: virtual const Identifier *identifier() const = 0; - bool isNameId() const; - bool isAnonymousNameId() const; - bool isTemplateNameId() const; - bool isDestructorNameId() const; - bool isOperatorNameId() const; - bool isConversionNameId() const; - bool isQualifiedNameId() const; - bool isSelectorNameId() const; - virtual const Identifier *asNameId() const { return nullptr; } virtual const AnonymousNameId *asAnonymousNameId() const { return nullptr; } virtual const TemplateNameId *asTemplateNameId() const { return nullptr; } |