blob: 11b655c96f048204e9c4675eaeff40c2bfcce4b3 [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_DOC_COMMENT_H_
#define CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_DOC_COMMENT_H_
/// Doc comment
///
/// * with three slashes
struct DocCommentSlashes final {
/// The default constructor which will get translated into
/// `impl Default for DocCommentSlashes`.
DocCommentSlashes();
/// A conversion constructor which will get translated into
/// `impl From<int> for DocCommentSlashes`.
explicit DocCommentSlashes(int);
/// A static method.
static int static_method();
/// A field.
int i;
};
//! Doc comment
//!
//! * with slashes and bang
struct DocCommentBang final {
//! A field
int i;
};
/** Multiline comment
* with two stars */
struct MultilineCommentTwoStars final {
/** A field */
int i;
};
// Line comment
//
// * with two slashes
struct LineComment final {
// A field
int i;
};
/* Multiline comment
* with one star */
struct MultilineOneStar final {
/* A field */
int i;
};
/// A function
inline int foo() { return 42; }
#endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_DOC_COMMENT_H_