mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 17:55:29 +01:00
Breakpad: Avoid using the C++ <cfoo> headers.
This patch avoids unnecessary use of the <cfoo> headers in files that don't actually use the identifiers they declare in the std:: namespace. It also changes some files to better conform with the "Names and Order of Includes" rules in the Google C++ Style Guide. A=jimb R=mark git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@619 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
4f456b8c0d
commit
e193098543
46 changed files with 132 additions and 103 deletions
|
|
@ -36,9 +36,10 @@
|
|||
#ifndef PROCESSOR_ADDRESS_MAP_INL_H__
|
||||
#define PROCESSOR_ADDRESS_MAP_INL_H__
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "processor/address_map.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "processor/logging.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "processor/address_map-inl.h"
|
||||
#include "processor/linked_ptr.h"
|
||||
|
|
|
|||
|
|
@ -34,9 +34,10 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "processor/basic_code_modules.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "google_breakpad/processor/code_module.h"
|
||||
#include "processor/linked_ptr.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,8 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
|
|
|
|||
|
|
@ -32,10 +32,12 @@
|
|||
// cfi_frame_info.cc: Implementation of CFIFrameInfo class.
|
||||
// See cfi_frame_info.h for details.
|
||||
|
||||
#include <cstring>
|
||||
#include "processor/cfi_frame_info.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#include "processor/cfi_frame_info.h"
|
||||
#include "processor/postfix_evaluator-inl.h"
|
||||
#include "processor/scoped_ptr.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -36,10 +36,10 @@
|
|||
#ifndef PROCESSOR_CONTAINED_RANGE_MAP_INL_H__
|
||||
#define PROCESSOR_CONTAINED_RANGE_MAP_INL_H__
|
||||
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "processor/contained_range_map.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "processor/logging.h"
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "processor/contained_range_map-inl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include "google_breakpad/processor/minidump.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
|
@ -49,7 +51,6 @@ typedef SSIZE_T ssize_t;
|
|||
#define O_BINARY 0
|
||||
#endif // _WIN32
|
||||
|
||||
#include <cassert>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
|
|
@ -58,7 +59,6 @@ typedef SSIZE_T ssize_t;
|
|||
|
||||
#include "processor/range_map-inl.h"
|
||||
|
||||
#include "google_breakpad/processor/minidump.h"
|
||||
#include "processor/basic_code_module.h"
|
||||
#include "processor/basic_code_modules.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "google_breakpad/processor/minidump.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -27,10 +27,11 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <cassert>
|
||||
#include <cstdio>
|
||||
|
||||
#include "google_breakpad/processor/minidump_processor.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
#include "google_breakpad/processor/minidump.h"
|
||||
#include "google_breakpad/processor/process_state.h"
|
||||
|
|
|
|||
|
|
@ -30,11 +30,13 @@
|
|||
// Unit test for MinidumpProcessor. Uses a pre-generated minidump and
|
||||
// corresponding symbol file, and checks the stack frames for correctness.
|
||||
|
||||
#include <cstdlib>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <map>
|
||||
|
||||
#include "breakpad_googletest_includes.h"
|
||||
#include "google_breakpad/processor/basic_source_line_resolver.h"
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
|
|
|
|||
|
|
@ -32,9 +32,10 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
|||
|
|
@ -27,14 +27,15 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include "google_breakpad/processor/network_source_line_resolver.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include "google_breakpad/processor/network_source_line_resolver.h"
|
||||
#include "google_breakpad/processor/stack_frame.h"
|
||||
#include "processor/binarystream.h"
|
||||
#include "processor/cfi_frame_info.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "processor/pathname_stripper.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -39,11 +39,12 @@
|
|||
#ifndef PROCESSOR_POSTFIX_EVALUATOR_INL_H__
|
||||
#define PROCESSOR_POSTFIX_EVALUATOR_INL_H__
|
||||
|
||||
#include "processor/postfix_evaluator.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <sstream>
|
||||
|
||||
#include "processor/postfix_evaluator.h"
|
||||
#include "google_breakpad/processor/memory_region.h"
|
||||
#include "processor/logging.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
#define PROCESSOR_RANGE_MAP_INL_H__
|
||||
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include "processor/range_map.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@
|
|||
// Author: Mark Mentovai
|
||||
|
||||
|
||||
#include <climits>
|
||||
#include <cstdio>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "processor/range_map-inl.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -33,15 +33,16 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
#include "processor/simple_symbol_supplier.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
|
||||
#include "processor/simple_symbol_supplier.h"
|
||||
#include "google_breakpad/processor/code_module.h"
|
||||
#include "google_breakpad/processor/system_info.h"
|
||||
#include "processor/logging.h"
|
||||
|
|
|
|||
|
|
@ -33,10 +33,10 @@
|
|||
//
|
||||
// Author: Mark Mentovai
|
||||
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#include "google_breakpad/processor/stackwalker.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include "google_breakpad/processor/call_stack.h"
|
||||
#include "google_breakpad/processor/code_module.h"
|
||||
#include "google_breakpad/processor/code_modules.h"
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@
|
|||
(defined(__i386__) || defined(__ppc__) || defined(__sparc__))
|
||||
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "google_breakpad/common/breakpad_types.h"
|
||||
#include "google_breakpad/common/minidump_format.h"
|
||||
|
|
|
|||
|
|
@ -108,7 +108,8 @@
|
|||
#ifndef PROCESSOR_SYNTH_MINIDUMP_H_
|
||||
#define PROCESSOR_SYNTH_MINIDUMP_H_
|
||||
|
||||
#include <cassert>
|
||||
#include <assert.h>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
3
src/processor/testdata/linux_test_app.cc
vendored
3
src/processor/testdata/linux_test_app.cc
vendored
|
|
@ -39,9 +39,10 @@
|
|||
// generate an executable with STABS symbols (needs -m32), or -gdwarf-2 for one
|
||||
// with DWARF symbols (32- or 64-bit)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <cstdio>
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "common/linux/linux_syscall_support.h"
|
||||
|
|
|
|||
2
src/processor/testdata/test_app.cc
vendored
2
src/processor/testdata/test_app.cc
vendored
|
|
@ -32,7 +32,7 @@
|
|||
// google_breakpad/src/client/windows/releasestaticcrt/exception_handler.lib
|
||||
// Then run test_app to generate a dump, and dump_syms to create the .sym file.
|
||||
|
||||
#include <cstdio>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "client/windows/handler/exception_handler.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -27,21 +27,23 @@
|
|||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "processor/udp_network.h"
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <errno.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
#include "processor/logging.h"
|
||||
#include "processor/udp_network.h"
|
||||
|
||||
namespace google_breakpad {
|
||||
using std::string;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,8 @@
|
|||
#ifndef PROCESSOR_WINDOWS_FRAME_INFO_H__
|
||||
#define PROCESSOR_WINDOWS_FRAME_INFO_H__
|
||||
|
||||
#include <cstring>
|
||||
#include <string.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue