Fix clang warnings related to python macro redefinition and printf format specifiers.

llvm-svn: 175829
This commit is contained in:
Matt Kopec 2013-02-21 23:55:31 +00:00
parent cd5c7247ab
commit 676a48751d
16 changed files with 29 additions and 5 deletions

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes // C Includes
// C++ Includes // C++ Includes

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/CXXFormatterFunctions.h" #include "lldb/DataFormatters/CXXFormatterFunctions.h"
#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/CXXFormatterFunctions.h" #include "lldb/DataFormatters/CXXFormatterFunctions.h"
#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/CXXFormatterFunctions.h" #include "lldb/DataFormatters/CXXFormatterFunctions.h"
#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/CXXFormatterFunctions.h" #include "lldb/DataFormatters/CXXFormatterFunctions.h"
#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/CXXFormatterFunctions.h" #include "lldb/DataFormatters/CXXFormatterFunctions.h"
#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/DataBufferHeap.h"

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/TypeCategory.h" #include "lldb/DataFormatters/TypeCategory.h"
// C Includes // C Includes

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/DataFormatters/TypeCategoryMap.h" #include "lldb/DataFormatters/TypeCategoryMap.h"
// C Includes // C Includes

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes // C Includes
// C++ Includes // C++ Includes

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes // C Includes
// C++ Includes // C++ Includes

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
// C Includes // C Includes
// C++ Includes // C++ Includes

View File

@ -2021,7 +2021,7 @@ ClangExpressionDeclMap::DoMaterializeOneVariable
{ {
if (value_byte_size != value_data_extractor.GetByteSize()) if (value_byte_size != value_data_extractor.GetByteSize())
{ {
err.SetErrorStringWithFormat ("Size mismatch for %s: %llu versus %llu", err.SetErrorStringWithFormat ("Size mismatch for %s: %" PRIu64 " versus %" PRIu64,
name.GetCString(), name.GetCString(),
(uint64_t)value_data_extractor.GetByteSize(), (uint64_t)value_data_extractor.GetByteSize(),
(uint64_t)value_byte_size); (uint64_t)value_byte_size);

View File

@ -7,6 +7,8 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
#include "lldb/lldb-python.h"
#include "lldb/Interpreter/OptionGroupFormat.h" #include "lldb/Interpreter/OptionGroupFormat.h"
// C Includes // C Includes

View File

@ -549,10 +549,10 @@ public:
void void
Dump () Dump ()
{ {
printf ("RemoteNXMapTable.m_load_addr = 0x%llx\n", m_load_addr); printf ("RemoteNXMapTable.m_load_addr = 0x%" PRIx64 "\n", m_load_addr);
printf ("RemoteNXMapTable.m_count = %u\n", m_count); printf ("RemoteNXMapTable.m_count = %u\n", m_count);
printf ("RemoteNXMapTable.m_num_buckets_minus_one = %u\n", m_num_buckets_minus_one); printf ("RemoteNXMapTable.m_num_buckets_minus_one = %u\n", m_num_buckets_minus_one);
printf ("RemoteNXMapTable.m_buckets_ptr = 0x%llx\n", m_buckets_ptr); printf ("RemoteNXMapTable.m_buckets_ptr = 0x%" PRIX64 "\n", m_buckets_ptr);
} }
bool bool

View File

@ -414,7 +414,7 @@ DWARFCompileUnit::BuildAddressRangeTable (SymbolFileDWARF* dwarf2Data,
{ {
const LineTable::FileAddressRanges::Entry &range = file_ranges.GetEntryRef(idx); const LineTable::FileAddressRanges::Entry &range = file_ranges.GetEntryRef(idx);
debug_aranges->AppendRange(GetOffset(), range.GetRangeBase(), range.GetRangeEnd()); debug_aranges->AppendRange(GetOffset(), range.GetRangeBase(), range.GetRangeEnd());
printf ("0x%8.8x: [0x%16.16llx - 0x%16.16llx)\n", GetOffset(), range.GetRangeBase(), range.GetRangeEnd()); printf ("0x%8.8x: [0x%16.16" PRIx64 " - 0x%16.16" PRIx64 ")\n", GetOffset(), range.GetRangeBase(), range.GetRangeEnd());
} }
} }
} }

View File

@ -4720,7 +4720,7 @@ Process::RunThreadPlan (ExecutionContext &exe_ctx,
{ {
if (timeout_ptr) if (timeout_ptr)
{ {
log->Printf ("Process::RunThreadPlan(): about to wait - now is %llu - endpoint is %llu", log->Printf ("Process::RunThreadPlan(): about to wait - now is %" PRIu64 " - endpoint is %" PRIu64,
TimeValue::Now().GetAsMicroSecondsSinceJan1_1970(), TimeValue::Now().GetAsMicroSecondsSinceJan1_1970(),
timeout_ptr->GetAsMicroSecondsSinceJan1_1970()); timeout_ptr->GetAsMicroSecondsSinceJan1_1970());
} }