File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
c2rust-transpile/src/c_ast Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -601,8 +601,8 @@ impl TypedAstContext {
601601 }
602602 }
603603
604- // Pessimistically try to check if an expression doesn't return. If it does, or we can't tell
605- /// that it doesn't, return `false`.
604+ /// Pessimistically try to check if an expression doesn't return.
605+ /// If it does, or we can't tell that it doesn't, return `false`.
606606 pub fn expr_diverges ( & self , expr_id : CExprId ) -> bool {
607607 let func_id = match self . index ( expr_id) . kind {
608608 CExprKind :: Call ( _, func_id, _) => func_id,
@@ -1186,6 +1186,9 @@ pub enum OffsetOfKind {
11861186
11871187/// Represents an expression in C (6.5 Expressions)
11881188///
1189+ /// This is modeled on Clang's APIs, so where documentation
1190+ /// is lacking here, look at Clang.
1191+ ///
11891192/// We've kept a qualified type on every node since Clang has this information available, and since
11901193/// the semantics of translations of certain constructs often depend on the type of the things they
11911194/// are given.
You can’t perform that action at this time.
0 commit comments