llvm/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp

#include "Rectangle.h"

Rectangle::Rectangle(double width, double height)
        : width_(width), height_(height) {}

double Rectangle::area() const {
    return width_ * height_;
}

double Rectangle::perimeter() const {
    return 2 * (width_ + height_);
}