diff options
author | Alex Lorenz <arphaman@gmail.com> | 2017-10-06 20:51:04 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2017-10-06 20:51:04 +0000 |
commit | e9baea817822ec183f521c444b37d257aabbc655 (patch) | |
tree | e40c9f85f9af79699cc79de10fba77bcd6dd5bbc /clang/test/Sema/warn-documentation.cpp | |
parent | 214babea606fae2ad1e367866e8394cf1b211c60 (diff) | |
download | bcm5719-llvm-e9baea817822ec183f521c444b37d257aabbc655.tar.gz bcm5719-llvm-e9baea817822ec183f521c444b37d257aabbc655.zip |
-Wdocumentation should allow '...' params in variadic function type aliases
rdar://34811344
llvm-svn: 315103
Diffstat (limited to 'clang/test/Sema/warn-documentation.cpp')
-rw-r--r-- | clang/test/Sema/warn-documentation.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/clang/test/Sema/warn-documentation.cpp b/clang/test/Sema/warn-documentation.cpp index ccf374ccd06..7ffaffc0784 100644 --- a/clang/test/Sema/warn-documentation.cpp +++ b/clang/test/Sema/warn-documentation.cpp @@ -1282,3 +1282,25 @@ struct HasMoreFields { }; } + +/*! + * Function pointer typedef with variadic params. + * + * @param a + * works + * + * @param ... + * now should work too. + */ +typedef void (*VariadicFnType)(int a, ...); + +/*! + * Function pointer type alias with variadic params. + * + * @param a + * works + * + * @param ... + * now should work too. + */ +using VariadicFnType2 = void (*)(int a, ...); |