Skip to content

Commit

Permalink
rustfmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Jul 9, 2018
1 parent a161b6a commit 28c3e86
Show file tree
Hide file tree
Showing 36 changed files with 88 additions and 80 deletions.
2 changes: 1 addition & 1 deletion src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::block::SBBlock;
use super::compileunit::SBCompileUnit;
use super::function::SBFunction;
Expand All @@ -15,6 +14,7 @@ use super::symbol::SBSymbol;
use super::symbolcontext::SBSymbolContext;
use super::target::SBTarget;
use super::AddressClass;
use std::fmt;
use sys;

/// A section + offset based address class.
Expand Down
2 changes: 1 addition & 1 deletion src/attachinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CString;
use super::filespec::SBFileSpec;
use super::listener::SBListener;
use super::lldb_pid_t;
use std::ffi::CString;
use sys;

/// Configuration for attaching to a process.
Expand Down
4 changes: 2 additions & 2 deletions src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CStr;
use std::fmt;
use super::address::SBAddress;
use super::filespec::SBFileSpec;
use super::stream::SBStream;
use std::ffi::CStr;
use std::fmt;
use sys;

/// A lexical block.
Expand Down
6 changes: 3 additions & 3 deletions src/breakpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CString;
use std::fmt;
use super::breakpointlocation::SBBreakpointLocation;
use super::lldb_addr_t;
use super::stream::SBStream;
use super::stringlist::SBStringList;
use super::lldb_addr_t;
use std::ffi::CString;
use std::fmt;
use sys;

/// A logical breakpoint and its associated settings.
Expand Down
2 changes: 1 addition & 1 deletion src/breakpointlocation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::address::SBAddress;
use super::breakpoint::SBBreakpoint;
use super::stream::SBStream;
use super::{lldb_addr_t, DescriptionLevel};
use std::fmt;
use sys;

/// One unique instance (by address) of a logical breakpoint.
Expand Down
2 changes: 1 addition & 1 deletion src/compileunit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::filespec::SBFileSpec;
use super::stream::SBStream;
use super::LanguageType;
use std::fmt;
use sys;

/// A compilation unit or compiled source file.
Expand Down
8 changes: 4 additions & 4 deletions src/debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::{CStr, CString};
use std::fmt;
use std::ptr;
use super::commandinterpreter::SBCommandInterpreter;
use super::error::SBError;
use super::platform::SBPlatform;
use super::stream::SBStream;
use super::structureddata::SBStructuredData;
use super::target::SBTarget;
use super::commandinterpreter::SBCommandInterpreter;
use std::ffi::{CStr, CString};
use std::fmt;
use std::ptr;
use sys;

/// Creates [`SBTarget`]s, provides access to them and manages
Expand Down
4 changes: 2 additions & 2 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CStr;
use std::fmt;
use super::stream::SBStream;
use super::ErrorType;
use std::ffi::CStr;
use std::fmt;
use sys;

/// A container for holding any error code.
Expand Down
4 changes: 2 additions & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CStr;
use std::fmt;
use super::broadcaster::SBBroadcaster;
use super::stream::SBStream;
use std::ffi::CStr;
use std::fmt;
use sys;

/// An event.
Expand Down
2 changes: 1 addition & 1 deletion src/filespec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use super::stream::SBStream;
use std::ffi::CStr;
use std::fmt;
use super::stream::SBStream;
use sys;

/// A file specification that divides the path into a
Expand Down
2 changes: 1 addition & 1 deletion src/filespeclist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::filespec::SBFileSpec;
use super::stream::SBStream;
use std::fmt;
use sys;

/// A list of [filespecs].
Expand Down
6 changes: 3 additions & 3 deletions src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::{CStr, CString};
use std::fmt;
use super::address::SBAddress;
use super::block::SBBlock;
use super::compileunit::SBCompileUnit;
use super::expressionoptions::SBExpressionOptions;
use super::function::SBFunction;
use super::lineentry::SBLineEntry;
use super::lldb_addr_t;
use super::module::SBModule;
use super::stream::SBStream;
use super::symbol::SBSymbol;
Expand All @@ -20,7 +19,8 @@ use super::thread::SBThread;
use super::value::SBValue;
use super::valuelist::SBValueList;
use super::variablesoptions::SBVariablesOptions;
use super::lldb_addr_t;
use std::ffi::{CStr, CString};
use std::fmt;
use sys;

/// One of the stack frames associated with a thread.
Expand Down
6 changes: 3 additions & 3 deletions src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::{CStr, CString};
use std::fmt;
use std::ptr;
use super::address::SBAddress;
use super::block::SBBlock;
use super::instructionlist::SBInstructionList;
use super::stream::SBStream;
use super::target::SBTarget;
use super::types::SBType;
use super::{DisassemblyFlavor, LanguageType};
use std::ffi::{CStr, CString};
use std::fmt;
use std::ptr;
use sys;

/// A generic function, which can be inlined or not.
Expand Down
4 changes: 2 additions & 2 deletions src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CStr;
use std::fmt;
use super::address::SBAddress;
use super::data::SBData;
use super::stream::SBStream;
use super::target::SBTarget;
use super::AddressClass;
use std::ffi::CStr;
use std::fmt;
use sys;

/// A machine instruction.
Expand Down
2 changes: 1 addition & 1 deletion src/instructionlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::instruction::SBInstruction;
use super::stream::SBStream;
use std::fmt;
use sys;

/// A list of [machine instructions].
Expand Down
4 changes: 2 additions & 2 deletions src/launchinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::{CStr, CString};
use std::ptr;
use super::filespec::SBFileSpec;
use super::listener::SBListener;
use super::{lldb_pid_t, LaunchFlags};
use std::ffi::{CStr, CString};
use std::ptr;
use sys;

/// Configuration for launching a process.
Expand Down
45 changes: 27 additions & 18 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@
//! [`SBLineEntry`]: struct.SBLineEntry.html

#![warn(missing_docs)]
#![deny(trivial_numeric_casts, unstable_features, unused_import_braces, unused_qualifications)]
#![deny(
trivial_numeric_casts,
unstable_features,
unused_import_braces,
unused_qualifications
)]

extern crate lldb_sys as sys;

Expand All @@ -118,17 +123,17 @@ extern crate juniper;

pub use sys::{lldb_addr_t, lldb_offset_t, lldb_pid_t, lldb_tid_t, lldb_user_id_t};

pub use sys::{AccessType, AddressClass, BasicType, BreakpointEventType, ByteOrder,
CommandArgumentType, CommandFlags, ConnectionStatus, DescriptionLevel,
DynamicValueType, EmulateInstructionOptions, Encoding, ErrorType,
ExpressionEvaluationPhase, ExpressionResults, FilePermissions, Format,
FrameComparison, FunctionNameType, GdbSignal, InputReaderAction,
InputReaderGranularity, InstrumentationRuntimeType, LanguageType, LaunchFlags,
MatchType, MemberFunctionKind, PathType, Permissions, QueueItemKind, QueueKind,
RegisterKind, ReturnStatus, RunMode, ScriptLanguage, SectionType, StateType,
StopReason, SymbolContextItem, SymbolType, TemplateArgumentKind, TypeClass,
TypeFlags, TypeOptions, TypeSummaryCapping, ValueType, WatchpointEventType,
WatchpointKind};
pub use sys::{
AccessType, AddressClass, BasicType, BreakpointEventType, ByteOrder, CommandArgumentType,
CommandFlags, ConnectionStatus, DescriptionLevel, DynamicValueType, EmulateInstructionOptions,
Encoding, ErrorType, ExpressionEvaluationPhase, ExpressionResults, FilePermissions, Format,
FrameComparison, FunctionNameType, GdbSignal, InputReaderAction, InputReaderGranularity,
InstrumentationRuntimeType, LanguageType, LaunchFlags, MatchType, MemberFunctionKind, PathType,
Permissions, QueueItemKind, QueueKind, RegisterKind, ReturnStatus, RunMode, ScriptLanguage,
SectionType, StateType, StopReason, SymbolContextItem, SymbolType, TemplateArgumentKind,
TypeClass, TypeFlags, TypeOptions, TypeSummaryCapping, ValueType, WatchpointEventType,
WatchpointKind,
};

mod address;
mod attachinfo;
Expand Down Expand Up @@ -169,8 +174,8 @@ mod symbolcontext;
mod symbolcontextlist;
mod target;
mod thread;
mod types;
mod typelist;
mod types;
mod value;
mod valuelist;
mod variablesoptions;
Expand Down Expand Up @@ -202,8 +207,10 @@ pub use self::listener::SBListener;
pub use self::module::{SBModule, SBModuleSectionIter};
pub use self::modulespec::SBModuleSpec;
pub use self::platform::SBPlatform;
pub use self::process::{SBProcess, SBProcessEvent, SBProcessEventRestartedReasonIter,
SBProcessQueueIter, SBProcessThreadIter};
pub use self::process::{
SBProcess, SBProcessEvent, SBProcessEventRestartedReasonIter, SBProcessQueueIter,
SBProcessThreadIter,
};
pub use self::processinfo::SBProcessInfo;
pub use self::queue::{SBQueue, SBQueueQueueItemIter, SBQueueThreadIter};
pub use self::queueitem::SBQueueItem;
Expand All @@ -214,11 +221,13 @@ pub use self::structureddata::SBStructuredData;
pub use self::symbol::SBSymbol;
pub use self::symbolcontext::SBSymbolContext;
pub use self::symbolcontextlist::SBSymbolContextList;
pub use self::target::{SBTarget, SBTargetBreakpointIter, SBTargetEvent, SBTargetEventModuleIter,
SBTargetModuleIter, SBTargetWatchpointIter};
pub use self::target::{
SBTarget, SBTargetBreakpointIter, SBTargetEvent, SBTargetEventModuleIter, SBTargetModuleIter,
SBTargetWatchpointIter,
};
pub use self::thread::{SBThread, SBThreadEvent, SBThreadFrameIter};
pub use self::types::SBType;
pub use self::typelist::{SBTypeList, SBTypeListIter};
pub use self::types::SBType;
pub use self::value::SBValue;
pub use self::valuelist::{SBValueList, SBValueListIter};
pub use self::variablesoptions::SBVariablesOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/lineentry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::address::SBAddress;
use super::filespec::SBFileSpec;
use super::stream::SBStream;
use std::fmt;
use sys;

/// Specifies an association with a contiguous range of
Expand Down
2 changes: 1 addition & 1 deletion src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CString;
use super::broadcaster::SBBroadcaster;
use super::debugger::SBDebugger;
use super::event::SBEvent;
use std::ffi::CString;
use sys;

/// Listen for debugger events.
Expand Down
4 changes: 2 additions & 2 deletions src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CString;
use std::fmt;
use super::filespec::SBFileSpec;
use super::section::SBSection;
use super::stream::SBStream;
use super::symbolcontextlist::SBSymbolContextList;
use super::SymbolType;
use std::ffi::CString;
use std::fmt;
use sys;

/// An executable image and its associated object and symbol files.
Expand Down
2 changes: 1 addition & 1 deletion src/modulespec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::fmt;
use super::filespec::SBFileSpec;
use super::stream::SBStream;
use std::fmt;
use sys;

/// A description of an `SBModule`.
Expand Down
2 changes: 1 addition & 1 deletion src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

use std::ffi::CStr;
use super::error::SBError;
use super::launchinfo::SBLaunchInfo;
use super::lldb_pid_t;
use std::ffi::CStr;
use sys;

/// A platform that can represent the current host or a
Expand Down
Loading

0 comments on commit 28c3e86

Please sign in to comment.