Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions c2rust-transpile/src/c_ast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,8 @@ impl TypedAstContext {
}
}

// Pessimistically try to check if an expression doesn't return. If it does, or we can't tell
/// that it doesn't, return `false`.
/// Pessimistically try to check if an expression doesn't return.
/// If it does, or we can't tell that it doesn't, return `false`.
pub fn expr_diverges(&self, expr_id: CExprId) -> bool {
let func_id = match self.index(expr_id).kind {
CExprKind::Call(_, func_id, _) => func_id,
Expand Down Expand Up @@ -1186,6 +1186,9 @@ pub enum OffsetOfKind {

/// Represents an expression in C (6.5 Expressions)
///
/// This is modeled on Clang's APIs, so where documentation
/// is lacking here, look at Clang.
///
/// We've kept a qualified type on every node since Clang has this information available, and since
/// the semantics of translations of certain constructs often depend on the type of the things they
/// are given.
Expand Down