summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2017-02-09 10:25:15 -0800
committerGitHub <noreply@github.com>2017-02-09 10:25:15 -0800
commit0927273e4a5162f0723b7c15e677ec5240b00801 (patch)
treeacad7db15dd5ad92be7bab5c9473396a442b6dea
parentd035de55d82d1f93efe5255bdc8cce356941ec93 (diff)
parente31836fc631fc02e14d97bbaed022f4bd25065e5 (diff)
Auto merge of #497 - emilio:clang-3.5, r=KiChjang
ir: Remove unused call to clang_Cursor_isAnonymous. Fixes #496
-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 a2b4ee0f..e74f1a61 100644
--- a/src/clang.rs
+++ b/src/clang.rs
@@ -216,11 +216,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()
@@ -1352,8 +1347,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