Files
TheRock/compiler/amd-llvm/clang-tools-extra/test/clang-doc/Inputs/enum.cpp
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

89 lines
1.4 KiB
C++

/**
* @brief For specifying RGB colors
*/
enum Color {
Red, ///< Comment 1
Green, ///< Comment 2
Blue ///< Comment 3
};
/**
* @brief Shape Types
*/
enum class Shapes {
/// Comment 1
Circle,
/// Comment 2
Rectangle,
/// Comment 3
Triangle
};
typedef unsigned char uint8_t;
/**
* @brief Specify the size
*/
enum Size : uint8_t {
/// A pearl.
/// Pearls are quite small.
///
/// Pearls are used in jewelry.
Small,
/// @brief A tennis ball.
Medium,
/// A football.
Large
};
/**
* @brief Very long number
*/
enum : long long {
BigVal = 999999999999 ///< A very large value
};
enum ColorUserSpecified {
RedUserSpecified = 'A',
GreenUserSpecified = 2,
BlueUserSpecified = 'C'
};
class FilePermissions {
public:
/**
* @brief File permission flags
*/
enum {
Read = 1, ///< Permission to READ r
Write = 2, ///< Permission to WRITE w
Execute = 4 ///< Permission to EXECUTE x
};
};
// COM: FIXME: Add enums declared inside of classes to class template
class Animals {
public:
/**
* @brief specify what animal the class is
*/
enum AnimalType {
Dog, ///< Man's best friend
Cat, ///< Man's other best friend
Iguana ///< A lizard
};
};
namespace Vehicles {
/**
* @brief specify type of car
*/
enum Car {
Sedan, ///< Comment 1
SUV, ///< Comment 2
Pickup,
Hatchback ///< Comment 4
};
} // namespace Vehicles