blob: d1fa917a32e36334c3ccaedbd91b73f2501dc7b3 [file] [log] [blame] [edit]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_CPPDOCGEN_E2E_TEST_NAMESPACE_H_
#define TOOLS_CPPDOCGEN_E2E_TEST_NAMESPACE_H_
/// # Namespace testing
///
/// This tests that the basic stuff works inside a namespace. The main thing is that the output be
/// properly qualified.
namespace myns {
struct StructInsideNamespace {
int a;
};
enum EnumInsideNamespace {
kValue1,
kValue2,
};
typedef StructInsideNamespace StructInsideNamespaceTypedef;
using StructInsideNamespaceUsing = StructInsideNamespace;
int FunctionInsideNamespace();
class ClassInsideNamespace {
public:
ClassInsideNamespace();
int SomeFunction();
};
} // namespace myns
#endif // TOOLS_CPPDOCGEN_E2E_TEST_NAMESPACE_H_