blob: 8b30c5d4dd24a5042fd8bbb1575d5e3b2c61afab [file] [log] [blame]
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.build.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Causes build to assert that annotated classes / methods / fields are
* optimized away in release builds (without dcheck_always_on).
*/
@Target({ElementType.CONSTRUCTOR, ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.CLASS)
public @interface CheckDiscard {
/**
* Describes why the element should be discarded.
* @return reason for discarding (crbug links are preferred unless reason is trivial).
*/
String value();
}