Skip to content

Commit 9a3cb68

Browse files
committed
[clang][deps] Fix warnings in clang-c/Dependencies.h
* Fix prototype of clang_experimental_DependencyScannerServiceOptions_create. Note: I believe adding (void) should be ABI-compatible. This function never supported variadic arguments in practice. * Fix spelling of out parameter in documentation comment. rdar://108821442 rdar://108816007 (cherry picked from commit 3d818df)
1 parent 541f571 commit 9a3cb68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang-c/Dependencies.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ typedef struct CXOpaqueDependencyScannerServiceOptions
187187
* clang_experimental_DependencyScannerServiceOptions_dispose.
188188
*/
189189
CINDEX_LINKAGE CXDependencyScannerServiceOptions
190-
clang_experimental_DependencyScannerServiceOptions_create();
190+
clang_experimental_DependencyScannerServiceOptions_create(void);
191191

192192
/**
193193
* Dispose of a \c CXDependencyScannerServiceOptions object.
@@ -308,7 +308,7 @@ typedef void CXModuleDiscoveredCallback(void *Context,
308308
* \param ContextHash the context hash of the dependent module.
309309
* See \c CXModuleDependency::ContextHash.
310310
& \param OutputKind the kind of module output to lookup.
311-
* \param Output[out] the output path(s) or name, whose total size must be <=
311+
* \param[out] Output the output path(s) or name, whose total size must be <=
312312
* \p MaxLen. In the case of multiple outputs of the same
313313
* kind, this can be a null-separated list.
314314
* \param MaxLen the maximum size of Output.

0 commit comments

Comments
 (0)