scons: Add warning for missing declarations

This patch enables warnings for missing declarations. To avoid issues
with SWIG-generated code, the warning is only applied to non-SWIG
code.
This commit is contained in:
Andreas Hansson
2013-02-19 05:56:07 -05:00
parent b44e0ce52b
commit 319443d42d
43 changed files with 181 additions and 9 deletions

View File

@@ -216,6 +216,8 @@ class MessageBuffer
int m_vnet_id;
};
Cycles random_time();
inline std::ostream&
operator<<(std::ostream& out, const MessageBuffer& obj)
{

View File

@@ -53,6 +53,8 @@ struct LinkOrder
int m_value;
};
bool operator<(const LinkOrder& l1, const LinkOrder& l2);
class PerfectSwitch : public Consumer
{
public:

View File

@@ -92,6 +92,14 @@ class AddressProfiler
int m_num_of_sequencers;
};
AccessTraceForAddress& lookupTraceForAddress(const Address& addr,
AddressProfiler::AddressMap&
record_map);
void printSorted(std::ostream& out, int num_of_sequencers,
const AddressProfiler::AddressMap &record_map,
std::string description);
inline std::ostream&
operator<<(std::ostream& out, const AddressProfiler& obj)
{

View File

@@ -170,4 +170,6 @@ class CacheMemory : public SimObject
bool m_resource_stalls;
};
std::ostream& operator<<(std::ostream& out, const CacheMemory& obj);
#endif // __MEM_RUBY_SYSTEM_CACHEMEMORY_HH__

View File

@@ -168,4 +168,6 @@ class RubyMemoryControl : public MemoryControl
MemCntrlProfiler* m_profiler_ptr;
};
std::ostream& operator<<(std::ostream& out, const RubyMemoryControl& obj);
#endif // __MEM_RUBY_SYSTEM_MEMORY_CONTROL_HH__

View File

@@ -100,4 +100,6 @@ class WireBuffer : public SimObject
};
std::ostream& operator<<(std::ostream& out, const WireBuffer& obj);
#endif // __MEM_RUBY_SYSTEM_WireBuffer_HH__