AlenkaF opened a new issue, #35475:
URL: https://github.com/apache/arrow/issues/35475

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   There are some long warnings returned when building the C++ api docs:
   
   <details><summary>compute api warnings</summary>
   <p>
   
   ```
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT ExecFactoryRegistry * default_exec_factory_registry ()
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 39]
         ARROW_ACERO_EXPORT ExecFactoryRegistry * default_exec_factory_registry 
()
         ---------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 39]
         ARROW_ACERO_EXPORT ExecFactoryRegistry * default_exec_factory_registry 
()
         ---------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::shared_ptr< Schema > > 
DeclarationToSchema (const Declaration &declaration, FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 55]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Schema > > 
DeclarationToSchema (const Declaration &declaration, FunctionRegistry 
*function_registry=NULLPTR)
         -------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 55]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Schema > > 
DeclarationToSchema (const Declaration &declaration, FunctionRegistry 
*function_registry=NULLPTR)
         -------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::string > DeclarationToString (const 
Declaration &declaration, FunctionRegistry *function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 41]
         ARROW_ACERO_EXPORT Result< std::string > DeclarationToString (const 
Declaration &declaration, FunctionRegistry *function_registry=NULLPTR)
         -----------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 41]
         ARROW_ACERO_EXPORT Result< std::string > DeclarationToString (const 
Declaration &declaration, FunctionRegistry *function_registry=NULLPTR)
         -----------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > DeclarationToTable 
(Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 54]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > 
DeclarationToTable (Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         ------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 54]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > 
DeclarationToTable (Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         ------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > DeclarationToTable 
(Declaration declaration, QueryOptions query_options)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 54]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > 
DeclarationToTable (Declaration declaration, QueryOptions query_options)
         ------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 54]
         ARROW_ACERO_EXPORT Result< std::shared_ptr< Table > > 
DeclarationToTable (Declaration declaration, QueryOptions query_options)
         ------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 54]
         ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         ------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 54]
         ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         ------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, ExecContext 
custom_exec_context)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 54]
         ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, ExecContext 
custom_exec_context)
         ------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 54]
         ARROW_ACERO_EXPORT Future< std::shared_ptr< Table > > 
DeclarationToTableAsync (Declaration declaration, ExecContext 
custom_exec_context)
         ------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 53]
         ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         -----------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 53]
         ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         -----------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, QueryOptions query_options)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 53]
         ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, QueryOptions query_options)
         -----------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 53]
         ARROW_ACERO_EXPORT Result< BatchesWithCommonSchema > 
DeclarationToExecBatches (Declaration declaration, QueryOptions query_options)
         -----------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 53]
         ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         -----------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 53]
         ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         -----------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, ExecContext 
custom_exec_context)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 53]
         ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, ExecContext 
custom_exec_context)
         -----------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 53]
         ARROW_ACERO_EXPORT Future< BatchesWithCommonSchema > 
DeclarationToExecBatchesAsync (Declaration declaration, ExecContext 
custom_exec_context)
         -----------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > > 
> DeclarationToBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 75]
         ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         
---------------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 75]
         ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatches (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         
---------------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > > 
> DeclarationToBatches (Declaration declaration, QueryOptions query_options)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 75]
         ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatches (Declaration declaration, QueryOptions query_options)
         
---------------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 75]
         ARROW_ACERO_EXPORT Result< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatches (Declaration declaration, QueryOptions query_options)
         
---------------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > > 
> DeclarationToBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 75]
         ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         
---------------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 75]
         ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatchesAsync (Declaration declaration, bool use_threads=true, 
MemoryPool *memory_pool=default_memory_pool(), FunctionRegistry 
*function_registry=NULLPTR)
         
---------------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > > 
> DeclarationToBatchesAsync (Declaration declaration, ExecContext exec_context)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 75]
         ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatchesAsync (Declaration declaration, ExecContext 
exec_context)
         
---------------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 75]
         ARROW_ACERO_EXPORT Future< std::vector< std::shared_ptr< RecordBatch > 
> > DeclarationToBatchesAsync (Declaration declaration, ExecContext 
exec_context)
         
---------------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 66]
         ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         ------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 66]
         ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         ------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, QueryOptions query_options)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 66]
         ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, QueryOptions query_options)
         ------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 66]
         ARROW_ACERO_EXPORT Result< std::unique_ptr< RecordBatchReader > > 
DeclarationToReader (Declaration declaration, QueryOptions query_options)
         ------------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration declaration, 
bool use_threads=true, MemoryPool *memory_pool=default_memory_pool(), 
FunctionRegistry *function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 26]
         ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration 
declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         --------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 26]
         ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration 
declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         --------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration declaration, 
QueryOptions query_options)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 26]
         ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration 
declaration, QueryOptions query_options)
         --------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 26]
         ARROW_ACERO_EXPORT Status DeclarationToStatus (Declaration 
declaration, QueryOptions query_options)
         --------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 26]
         ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         --------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 26]
         ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, bool use_threads=true, MemoryPool 
*memory_pool=default_memory_pool(), FunctionRegistry *function_registry=NULLPTR)
         --------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, ExecContext exec_context)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 26]
         ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, ExecContext exec_context)
         --------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 26]
         ARROW_ACERO_EXPORT Future DeclarationToStatusAsync (Declaration 
declaration, ExecContext exec_context)
         --------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT std::shared_ptr< RecordBatchReader > 
MakeGeneratorReader (std::shared_ptr< Schema >, std::function< Future< 
std::optional< ExecBatch > >()>, MemoryPool *)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 56]
         ARROW_ACERO_EXPORT std::shared_ptr< RecordBatchReader > 
MakeGeneratorReader (std::shared_ptr< Schema >, std::function< Future< 
std::optional< ExecBatch > >()>, MemoryPool *)
         --------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 56]
         ARROW_ACERO_EXPORT std::shared_ptr< RecordBatchReader > 
MakeGeneratorReader (std::shared_ptr< Schema >, std::function< Future< 
std::optional< ExecBatch > >()>, MemoryPool *)
         --------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/compute.rst:80: WARNING: 
Error when parsing function declaration.
   If the function has no return type:
     Error in declarator or parameters-and-qualifiers
     Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 19]
       ARROW_ACERO_EXPORT Result< std::function< Future< std::optional< 
ExecBatch > >()> > MakeReaderGenerator (std::shared_ptr< RecordBatchReader > 
reader, arrow::internal::Executor *io_executor, int 
max_q=kDefaultBackgroundMaxQ, int q_restart=kDefaultBackgroundQRestart)
       -------------------^
   If the function has a return type:
     Error in declarator or parameters-and-qualifiers
     If pointer to member declarator:
       Invalid C++ declaration: Expected '::' in pointer to member (function). 
[error at 84]
         ARROW_ACERO_EXPORT Result< std::function< Future< std::optional< 
ExecBatch > >()> > MakeReaderGenerator (std::shared_ptr< RecordBatchReader > 
reader, arrow::internal::Executor *io_executor, int 
max_q=kDefaultBackgroundMaxQ, int q_restart=kDefaultBackgroundQRestart)
         
------------------------------------------------------------------------------------^
     If declarator-id:
       Invalid C++ declaration: Expecting "(" in parameters-and-qualifiers. 
[error at 84]
         ARROW_ACERO_EXPORT Result< std::function< Future< std::optional< 
ExecBatch > >()> > MakeReaderGenerator (std::shared_ptr< RecordBatchReader > 
reader, arrow::internal::Executor *io_executor, int 
max_q=kDefaultBackgroundMaxQ, int q_restart=kDefaultBackgroundQRestart)
         
------------------------------------------------------------------------------------^
   ```
   </p>
   </details> 
   
   <details><summary>dataset api warnings</summary>
   <p>
   
   ```
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/dataset.rst:62: WARNING: 
Parsing of expression failed. Using fallback parser. Error was:
   Error in postfix expression, expected primary expression or type.
   If primary expression:
     Invalid C++ declaration: Expected identifier in nested name. [error at 59]
       std::function< Status(FileWriter *)> writer_pre_finish   = 
[](FileWriter*) {returnStatus::OK();}
       -----------------------------------------------------------^
   If type:
     Invalid C++ declaration: Expected identifier in nested name. [error at 59]
       std::function< Status(FileWriter *)> writer_pre_finish   = 
[](FileWriter*) {returnStatus::OK();}
       -----------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/dataset.rst:62: WARNING: 
Parsing of expression failed. Using fallback parser. Error was:
   Error in postfix expression, expected primary expression or type.
   If primary expression:
     Invalid C++ declaration: Expected identifier in nested name. [error at 60]
       std::function< Status(FileWriter *)> writer_post_finish   = 
[](FileWriter*) {returnStatus::OK();}
       ------------------------------------------------------------^
   If type:
     Invalid C++ declaration: Expected identifier in nested name. [error at 60]
       std::function< Status(FileWriter *)> writer_post_finish   = 
[](FileWriter*) {returnStatus::OK();}
       ------------------------------------------------------------^
   
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/dataset.rst:69: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/dataset:69.
   Declaration is '.. cpp:function:: virtual Result< std::shared_ptr< 
FileFragment > > MakeFragment (FileSource source, compute::Expression 
partition_expression, std::shared_ptr< Schema > physical_schema)'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/flight.rst:159: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/flight:159.
   Declaration is '.. cpp:function:: virtual arrow::Result< FlightPayload > 
GetSchemaPayload ()=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:72: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:72.
   Declaration is '.. cpp:function:: virtual Status Allocate (int64_t size, 
int64_t alignment, uint8_t **out)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:72: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:72.
   Declaration is '.. cpp:function:: virtual void Free (uint8_t *buffer, 
int64_t size, int64_t alignment)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:72: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:72.
   Declaration is '.. cpp:function:: virtual Status Reallocate (int64_t 
old_size, int64_t new_size, int64_t alignment, uint8_t **ptr)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:75: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:75.
   Declaration is '.. cpp:function:: virtual Status Allocate (int64_t size, 
int64_t alignment, uint8_t **out)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:75: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:75.
   Declaration is '.. cpp:function:: virtual void Free (uint8_t *buffer, 
int64_t size, int64_t alignment)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:75: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:75.
   Declaration is '.. cpp:function:: virtual Status Reallocate (int64_t 
old_size, int64_t new_size, int64_t alignment, uint8_t **ptr)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:109: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:109.
   Declaration is '.. cpp:function:: virtual Status Allocate (int64_t size, 
int64_t alignment, uint8_t **out)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:109: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:109.
   Declaration is '.. cpp:function:: virtual void Free (uint8_t *buffer, 
int64_t size, int64_t alignment)=0'.
   /Users/alenkafrim/repos/arrow/docs/source/cpp/api/memory.rst:109: WARNING: 
Duplicate C++ declaration, also defined at cpp/api/memory:109.
   Declaration is '.. cpp:function:: virtual Status Reallocate (int64_t 
old_size, int64_t new_size, int64_t alignment, uint8_t **ptr)=0'.
   ```
   
   </p>
   </details> 
   
   I am happy to correct them but would ask for some pointers to finding the 
solution.
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to