summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clang.rs7
-rw-r--r--src/ir/comp.rs5
2 files changed, 0 insertions, 12 deletions
diff --git a/src/clang.rs b/src/clang.rs
index ffe9d5d0..1a346898 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -212,11 +212,6 @@ impl Cursor {
unsafe { clang_isCursorDefinition(self.x) != 0 }
}
- /// Is the referent an anonymous record definition?
- pub fn is_anonymous(&self) -> bool {
- unsafe { clang_Cursor_isAnonymous(self.x) != 0 }
- }
-
/// Is the referent a template specialization?
pub fn is_template_specialization(&self) -> bool {
self.specialized().is_some()
@@ -1339,8 +1334,6 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
prefix,
c.is_declaration()));
print_indent(depth,
- format!(" {}is-anonymous? {}", prefix, c.is_anonymous()));
- print_indent(depth,
format!(" {}is-inlined-function? {}",
prefix,
c.is_inlined_function()));
diff --git a/src/ir/comp.rs b/src/ir/comp.rs
index 1ca39559..69569efa 100644
--- a/src/ir/comp.rs
+++ b/src/ir/comp.rs
@@ -289,9 +289,6 @@ pub struct CompInfo {
/// Whether this struct layout is packed.
packed: bool,
- /// Whether this struct is anonymous.
- is_anonymous: bool,
-
/// Used to know if we've found an opaque attribute that could cause us to
/// generate a type with invalid layout. This is explicitly used to avoid us
/// generating bad alignments when parsing types like max_align_t.
@@ -335,7 +332,6 @@ impl CompInfo {
has_nonempty_base: false,
has_non_type_template_params: false,
packed: false,
- is_anonymous: false,
found_unknown_attr: false,
detect_derive_debug_cycle: Cell::new(false),
detect_derive_default_cycle: Cell::new(false),
@@ -562,7 +558,6 @@ impl CompInfo {
CXCursor_ClassDecl => !cur.is_definition(),
_ => false,
});
- ci.is_anonymous = cursor.is_anonymous();
ci.template_args = match ty.template_args() {
// In forward declarations and not specializations,
// etc, they are in