File indexing completed on 2024-06-16 04:24:20
0001 /* This file is part of KDevelop 0002 Copyright 2014 Kevin Funk <kfunk@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 struct Foo 0020 { 0021 /// "internalContext" : { "localDeclarationCount" : 1, "findDeclarations" : { "a" : { "defaultParameter" : "1" } } } 0022 int foo(int a = 1); 0023 }; 0024 0025 /// "internalContext" : { "localDeclarationCount" : 1, "findDeclarations" : { "a" : { "defaultParameter" : "1" } } } 0026 int foo(int a = 1); 0027 0028 /// "internalContext" : { "localDeclarationCount" : 1, "findDeclarations" : { "a" : { "defaultParameter" : "1" } } } 0029 int foodef(int a = 1); 0030 0031 /// "internalContext" : { "localDeclarationCount" : 3, "findDeclarations" : { 0032 /// "a" : { "defaultParameter" : "4" }, 0033 /// "b" : { "defaultParameter" : "3" } 0034 /// } } 0035 int foo(int sure, int a = 4, int b = 3); 0036 0037 #define FOO 1 0038 #define BAR 2 0039 /// "internalContext" : { "localDeclarationCount" : 4, "findDeclarations" : { 0040 /// "a" : { "defaultParameter" : "FOO" }, 0041 /// "b" : { "defaultParameter" : "BAR" }, 0042 /// "c" : { "defaultParameter" : "3" } 0043 /// } } 0044 int foobar(int sure, int a = FOO, int b = BAR, int c = 3);