Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/util/clangutils.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 53 | { | |||
---|---|---|---|---|---|
54 | FixedSize, ///< The vector will have length equal to the number of arguments to the function | 54 | FixedSize, ///< The vector will have length equal to the number of arguments to the function | ||
55 | /// and any arguments without a default parameter will be represented with an empty string. | 55 | /// and any arguments without a default parameter will be represented with an empty string. | ||
56 | MinimumSize ///< The vector will have a length equal to the number of default values | 56 | MinimumSize ///< The vector will have a length equal to the number of default values | ||
57 | }; | 57 | }; | ||
58 | 58 | | |||
59 | /** | 59 | /** | ||
60 | * Given a cursor representing a function, returns a vector containing the string | 60 | * Given a cursor representing a function, returns a vector containing the string | ||
61 | * representations of the default arguments of the function which are defined at | 61 | * representations of the default arguments of the function which are defined at | ||
62 | * the occurence of the cursor. Note that this is not necessarily all of the default | 62 | * the occurrence of the cursor. Note that this is not necessarily all of the default | ||
63 | * arguments of the function. | 63 | * arguments of the function. | ||
64 | * | 64 | * | ||
65 | * @param cursor The cursor to examine | 65 | * @param cursor The cursor to examine | ||
66 | * @return a vector of QStrings representing the default arguments, or an empty | 66 | * @return a vector of QStrings representing the default arguments, or an empty | ||
67 | * vector if cursor does not represent a function | 67 | * vector if cursor does not represent a function | ||
68 | */ | 68 | */ | ||
69 | QVector<QString> getDefaultArguments(CXCursor cursor, DefaultArgumentsMode mode = FixedSize); | 69 | QVector<QString> getDefaultArguments(CXCursor cursor, DefaultArgumentsMode mode = FixedSize); | ||
70 | 70 | | |||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |