summaryrefslogtreecommitdiff
path: root/tests/examplefiles/cpp/functions.cpp
diff options
context:
space:
mode:
authoramitkummer <49096391+amitkummer@users.noreply.github.com>2021-12-30 16:40:59 +0200
committerGitHub <noreply@github.com>2021-12-30 15:40:59 +0100
commited2bdcdadaff58c183d5127e0af77e72b7b7f501 (patch)
treed627ebf8cb40d2d101428527d3349de9f40ea5ce /tests/examplefiles/cpp/functions.cpp
parentdcea4d84a9bd252c6f9f1db4c0116bca30e39ae6 (diff)
downloadpygments-git-ed2bdcdadaff58c183d5127e0af77e72b7b7f501.tar.gz
CFamily: improve function detection (#2008)
Detect function with return types of more than a single word length (like `unsigned int` or `long long`).
Diffstat (limited to 'tests/examplefiles/cpp/functions.cpp')
-rw-r--r--tests/examplefiles/cpp/functions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/examplefiles/cpp/functions.cpp b/tests/examplefiles/cpp/functions.cpp
index 662e0d2c..ef359fe0 100644
--- a/tests/examplefiles/cpp/functions.cpp
+++ b/tests/examplefiles/cpp/functions.cpp
@@ -62,6 +62,9 @@ explicit const string contains(const char* str) {}
explicit const string contains(const char * str);
explicit const string contains(const char * str) {}
+unsigned int contains() {}
+unsigned int contains();
+
// Names with namespaces
string Type::contains(char c) const noexcept;