From ed2bdcdadaff58c183d5127e0af77e72b7b7f501 Mon Sep 17 00:00:00 2001 From: amitkummer <49096391+amitkummer@users.noreply.github.com> Date: Thu, 30 Dec 2021 16:40:59 +0200 Subject: CFamily: improve function detection (#2008) Detect function with return types of more than a single word length (like `unsigned int` or `long long`). --- tests/examplefiles/cpp/functions.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/examplefiles/cpp/functions.cpp') 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; -- cgit v1.2.1