mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:10:14 +01:00
This modifies scripts/check_header_guards.py to add the CARBON_ prefix; everything else is pre-commit.
23 lines
734 B
C++
23 lines
734 B
C++
// Part of the Carbon Language 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 CARBON_EXPLORER_AST_VALUE_CATEGORY_H_
|
|
#define CARBON_EXPLORER_AST_VALUE_CATEGORY_H_
|
|
|
|
namespace Carbon {
|
|
|
|
// The value category of a Carbon expression indicates whether it evaluates
|
|
// to a variable or a value. A variable can be mutated, and can have its
|
|
// address taken, whereas a value cannot.
|
|
enum class ValueCategory {
|
|
// A variable. This roughly corresponds to a C/C++ lvalue.
|
|
Var,
|
|
// A value. This roughly corresponds to a C/C++ rvalue.
|
|
Let,
|
|
};
|
|
|
|
} // namespace Carbon
|
|
|
|
#endif // CARBON_EXPLORER_AST_VALUE_CATEGORY_H_
|